Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008344/0.0008344, allocations: 86.41 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008989/0.0008992, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 223.3 MB / 240 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.543/2.543, allocations: 390.4 MB / 0.6655 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003387/0.0003387, allocations: 11.98 kB / 0.8149 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8038/0.8041, allocations: 142.3 MB / 0.9539 GB, free: 8.184 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.001711/0.8059, allocations: 1.447 MB / 0.9553 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001302/0.8072, allocations: 1.017 MB / 0.9563 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.754e-05/0.8073, allocations: 1.062 kB / 0.9563 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002579/0.8076, allocations: 53.62 kB / 0.9563 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001721/0.8077, allocations: 60.92 kB / 0.9564 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005114/0.8083, allocations: 184.8 kB / 0.9565 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001676/0.8084, allocations: 127.4 kB / 0.9567 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.995e-05/0.8085, allocations: 19.33 kB / 0.9567 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.738e-05/0.8086, allocations: 50.91 kB / 0.9567 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.942e-05/0.8087, allocations: 53.88 kB / 0.9568 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.566e-05/0.8087, allocations: 2.656 kB / 0.9568 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001256/0.8089, allocations: 56.92 kB / 0.9568 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.163e-05/0.8089, allocations: 34.25 kB / 0.9569 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.069e-05/0.809, allocations: 51.52 kB / 0.9569 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000181/0.8092, allocations: 146.9 kB / 0.9571 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.8092, allocations: 0 / 0.9571 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.152e-06/0.8092, allocations: 0 / 0.9571 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.359e-06/0.8092, allocations: 0 / 0.9571 GB, free: 5.746 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005452/0.8098, allocations: 472.9 kB / 0.9575 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.8098, allocations: 8.156 kB / 0.9575 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.304e-05/0.8098, allocations: 33.56 kB / 0.9576 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.73e-05/0.8099, allocations: 23.48 kB / 0.9576 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002199/0.8101, allocations: 241.6 kB / 0.9578 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.8101, allocations: 9.812 kB / 0.9578 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.664e-05/0.8102, allocations: 11.31 kB / 0.9578 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001792/0.8103, allocations: 91.27 kB / 0.9579 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.8104, allocations: 1.562 kB / 0.9579 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.8104, allocations: 0 / 0.9579 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.772e-05/0.8104, allocations: 6.781 kB / 0.9579 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.519e-05/0.8105, allocations: 36.58 kB / 0.958 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004146/0.8109, allocations: 353.4 kB / 0.9583 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001898/0.8111, allocations: 89.25 kB / 0.9584 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.308e-05/0.8112, allocations: 35.16 kB / 0.9584 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.8112, allocations: 0 / 0.9584 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001814/0.8114, allocations: 88.83 kB / 0.9585 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.402e-06/0.8114, allocations: 0 / 0.9585 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004359/0.8119, allocations: 141.5 kB / 0.9586 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.867e-05/0.8119, allocations: 105.6 kB / 0.9587 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003228/0.8123, allocations: 261.6 kB / 0.959 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.8123, allocations: 31.08 kB / 0.959 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.34e-05/0.8124, allocations: 124.3 kB / 0.9591 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.021e-05/0.8124, allocations: 19.88 kB / 0.9592 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.994e-06/0.8124, allocations: 0 / 0.9592 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.611e-05/0.8125, allocations: 328.3 kB / 0.9595 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.496e-05/0.8126, allocations: 25.73 kB / 0.9595 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.8127, allocations: 72.7 kB / 0.9596 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.986e-05/0.8128, allocations: 31.86 kB / 0.9596 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.8128, allocations: 0 / 0.9596 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002696/0.8131, allocations: 116.6 kB / 0.9597 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.8131, allocations: 10.39 kB / 0.9597 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.8132, allocations: 3.938 kB / 0.9597 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.8132, allocations: 1.094 kB / 0.9597 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.8133, allocations: 14.33 kB / 0.9597 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.8133, allocations: 0.7188 kB / 0.9597 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.619e-05/0.8134, allocations: 8.625 kB / 0.9597 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.8134, allocations: 6.281 kB / 0.9597 GB, free: 3.273 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.y,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001327/0.8136, allocations: 137.7 kB / 0.9599 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.323e-05/0.8136, allocations: 20.03 kB / 0.9599 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.547e-05/0.8137, allocations: 24.19 kB / 0.9599 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.257e-05/0.8137, allocations: 2.281 kB / 0.9599 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.8137, allocations: 0 / 0.9599 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.8137, allocations: 0 / 0.9599 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000192/0.8139, allocations: 226.6 kB / 0.9601 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.8139, allocations: 5.281 kB / 0.9601 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.297e-05/0.814, allocations: 15.58 kB / 0.9602 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.814, allocations: 0.9688 kB / 0.9602 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.814, allocations: 1.188 kB / 0.9602 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.287e-06/0.814, allocations: 4.984 kB / 0.9602 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.8141, allocations: 0.5781 kB / 0.9602 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000308/0.8144, allocations: 143.6 kB / 0.9603 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.043e-05/0.8144, allocations: 99.52 kB / 0.9604 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.592e-05/0.8145, allocations: 9.016 kB / 0.9604 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.151e-05/0.8146, allocations: 6.625 kB / 0.9604 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.487e-05/0.8146, allocations: 15.66 kB / 0.9604 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.8147, allocations: 3.25 kB / 0.9604 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002251/0.8149, allocations: 198.7 kB / 0.9606 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8149, allocations: 0 / 0.9606 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003964/0.8153, allocations: 28.84 kB / 0.9606 GB, free: 2.484 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,intTab.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001693/0.817, allocations: 1.006 MB / 0.9616 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002685/0.8173, allocations: 66.41 kB / 0.9617 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.8173, allocations: 1.375 kB / 0.9617 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001071/0.8174, allocations: 32.61 kB / 0.9617 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000387/0.8178, allocations: 38.14 kB / 0.9618 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00207/0.8199, allocations: 0.9736 MB / 0.9627 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001967/0.8201, allocations: 0.7227 MB / 0.9634 GB, free: 284 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001153/0.8202, allocations: 31.97 kB / 0.9634 GB, free: 268 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.553e-05/0.8203, allocations: 45.17 kB / 0.9635 GB, free: 232 kB / 0.7169 GB Notification: Performance of SimCode: time 5.92e-07/0.8203, allocations: 0 / 0.9635 GB, free: 232 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01898/0.8393, allocations: 4.138 MB / 0.9675 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003941/0.8398, allocations: 234.4 kB / 0.9678 GB, free: 14.01 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.919/2.758, allocations: 4.688 kB / 0.9678 GB, free: 14 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat does not exist to compare? outputFormat=mat