Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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(IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IBPSA_latest_IBPSA_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.0007316/0.0007316, allocations: 88.17 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007347/0.0007347, allocations: 172.8 kB / 16.58 MB, free: 6.852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.189/1.189, allocations: 223.3 MB / 240.6 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6107/0.6107, allocations: 113.7 MB / 405.5 MB, free: 4.582 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002679/0.000268, allocations: 12.89 kB / 493.2 MB, free: 8.574 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1156, allocations: 77.11 MB / 0.5569 GB, free: 11.67 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegerReplicator): time 0.001655/0.1173, allocations: 1.447 MB / 0.5583 GB, free: 10.21 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001253/0.1186, allocations: 1.007 MB / 0.5593 GB, free: 9.195 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.061e-05/0.1187, allocations: 0 / 0.5593 GB, free: 9.195 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002242/0.1189, allocations: 63.73 kB / 0.5594 GB, free: 9.133 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000147/0.1191, allocations: 55.75 kB / 0.5594 GB, free: 9.078 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004465/0.1195, allocations: 195.3 kB / 0.5596 GB, free: 8.891 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001493/0.1197, allocations: 119.7 kB / 0.5597 GB, free: 8.773 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.437e-05/0.1198, allocations: 17.12 kB / 0.5597 GB, free: 8.758 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.225e-05/0.1199, allocations: 59.69 kB / 0.5598 GB, free: 8.699 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.881e-05/0.1199, allocations: 55.77 kB / 0.5598 GB, free: 8.645 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.277e-05/0.12, allocations: 0 / 0.5598 GB, free: 8.645 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001021/0.1201, allocations: 51.97 kB / 0.5599 GB, free: 8.594 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 6.825e-05/0.1201, allocations: 35.84 kB / 0.5599 GB, free: 8.559 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.037e-05/0.1202, allocations: 49.64 kB / 0.56 GB, free: 8.504 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001774/0.1204, allocations: 148 kB / 0.5601 GB, free: 8.359 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1204, allocations: 0 / 0.5601 GB, free: 8.359 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1204, allocations: 3.938 kB / 0.5601 GB, free: 8.355 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.376e-06/0.1204, allocations: 0 / 0.5601 GB, free: 8.355 MB / 430.1 MB 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.000504/0.1209, allocations: 464.4 kB / 0.5606 GB, free: 7.848 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.916e-05/0.1209, allocations: 12.03 kB / 0.5606 GB, free: 7.836 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.408e-05/0.121, allocations: 38.55 kB / 0.5606 GB, free: 7.789 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.459e-05/0.121, allocations: 19.81 kB / 0.5606 GB, free: 7.77 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002327/0.1213, allocations: 239.7 kB / 0.5609 GB, free: 7.492 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.476e-05/0.1213, allocations: 8 kB / 0.5609 GB, free: 7.484 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.132e-05/0.1213, allocations: 0 / 0.5609 GB, free: 7.484 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001748/0.1215, allocations: 100.1 kB / 0.561 GB, free: 7.371 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.271e-06/0.1215, allocations: 4 kB / 0.561 GB, free: 7.367 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.1215, allocations: 4 kB / 0.561 GB, free: 7.363 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.1215, allocations: 4 kB / 0.561 GB, free: 7.359 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.699e-05/0.1216, allocations: 27.98 kB / 0.561 GB, free: 7.332 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004178/0.1221, allocations: 356.6 kB / 0.5613 GB, free: 6.934 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001884/0.1223, allocations: 94.69 kB / 0.5614 GB, free: 6.832 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.233e-05/0.1223, allocations: 32.78 kB / 0.5615 GB, free: 6.797 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.863e-05/0.1224, allocations: 11.97 kB / 0.5615 GB, free: 6.785 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001736/0.1225, allocations: 79.38 kB / 0.5615 GB, free: 6.695 MB / 430.1 MB Notification: Performance of pre-optimization done (n=8): time 1.332e-06/0.1225, allocations: 0 / 0.5615 GB, free: 6.695 MB / 430.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002867/0.1228, allocations: 133.4 kB / 0.5617 GB, free: 6.559 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.025e-05/0.1229, allocations: 118.8 kB / 0.5618 GB, free: 6.418 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002306/0.1231, allocations: 263.4 kB / 0.562 GB, free: 6.152 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.1232, allocations: 29.7 kB / 0.5621 GB, free: 6.117 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.025e-05/0.1232, allocations: 112.1 kB / 0.5622 GB, free: 6.004 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.337e-05/0.1233, allocations: 27.69 kB / 0.5622 GB, free: 5.977 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.728e-06/0.1233, allocations: 0 / 0.5622 GB, free: 5.977 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.643e-05/0.1234, allocations: 326.8 kB / 0.5625 GB, free: 5.648 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.246e-05/0.1234, allocations: 27.98 kB / 0.5625 GB, free: 5.621 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.944e-05/0.1235, allocations: 72.27 kB / 0.5626 GB, free: 5.535 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.059e-05/0.1236, allocations: 35.89 kB / 0.5626 GB, free: 5.5 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.1236, allocations: 0 / 0.5626 GB, free: 5.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001825/0.1238, allocations: 105.8 kB / 0.5627 GB, free: 5.391 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.1238, allocations: 7.984 kB / 0.5627 GB, free: 5.383 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1239, allocations: 4.031 kB / 0.5627 GB, free: 5.379 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.167e-06/0.1239, allocations: 3.938 kB / 0.5628 GB, free: 5.375 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.057e-05/0.124, allocations: 16 kB / 0.5628 GB, free: 5.359 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.124, allocations: 4.062 kB / 0.5628 GB, free: 5.355 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.807e-05/0.124, allocations: 11.92 kB / 0.5628 GB, free: 5.344 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.124, allocations: 4 kB / 0.5628 GB, free: 5.34 MB / 430.1 MB 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.0001286/0.1242, allocations: 143.1 kB / 0.5629 GB, free: 5.191 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.038e-05/0.1242, allocations: 15.81 kB / 0.5629 GB, free: 5.176 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.714e-05/0.1243, allocations: 25.39 kB / 0.563 GB, free: 5.148 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.1243, allocations: 4 kB / 0.563 GB, free: 5.145 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.1243, allocations: 0 / 0.563 GB, free: 5.145 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.604e-06/0.1243, allocations: 0 / 0.563 GB, free: 5.145 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001656/0.1245, allocations: 221.6 kB / 0.5632 GB, free: 4.879 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1245, allocations: 3.953 kB / 0.5632 GB, free: 4.875 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.811e-05/0.1245, allocations: 7.938 kB / 0.5632 GB, free: 4.867 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1245, allocations: 3.938 kB / 0.5632 GB, free: 4.863 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.1245, allocations: 11.98 kB / 0.5632 GB, free: 4.852 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.1245, allocations: 0 / 0.5632 GB, free: 4.852 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1246, allocations: 0 / 0.5632 GB, free: 4.852 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001996/0.1248, allocations: 140.9 kB / 0.5633 GB, free: 4.695 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.838e-05/0.1248, allocations: 100.9 kB / 0.5634 GB, free: 4.578 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.464e-05/0.1249, allocations: 4 kB / 0.5634 GB, free: 4.574 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.884e-05/0.1249, allocations: 3.984 kB / 0.5634 GB, free: 4.57 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.12e-05/0.125, allocations: 11.98 kB / 0.5635 GB, free: 4.559 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.125, allocations: 8.172 kB / 0.5635 GB, free: 4.551 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001569/0.1251, allocations: 196.4 kB / 0.5636 GB, free: 4.359 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1251, allocations: 7.938 kB / 0.5637 GB, free: 4.352 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002282/0.1254, allocations: 31.98 kB / 0.5637 GB, free: 4.32 MB / 430.1 MB 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.001159/0.1265, allocations: 0.9898 MB / 0.5647 GB, free: 3.473 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001912/0.1267, allocations: 75.89 kB / 0.5647 GB, free: 3.398 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1268, allocations: 3.938 kB / 0.5647 GB, free: 3.395 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 7.391e-05/0.1268, allocations: 31.98 kB / 0.5648 GB, free: 3.363 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000237/0.1271, allocations: 39.91 kB / 0.5648 GB, free: 3.324 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/0.1283, allocations: 0.9617 MB / 0.5657 GB, free: 2.312 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002402/0.1286, allocations: 0.7281 MB / 0.5664 GB, free: 1.559 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.231e-05/0.1287, allocations: 33.34 kB / 0.5665 GB, free: 1.527 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.875e-05/0.1288, allocations: 43.42 kB / 0.5665 GB, free: 1.484 MB / 430.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1288, allocations: 0 / 0.5665 GB, free: 1.484 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01369/0.1425, allocations: 4.131 MB / 0.5706 GB, free: 13.51 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001831/0.1427, allocations: 213.6 kB / 0.5708 GB, free: 13.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.533/1.676, allocations: 0 / 0.5708 GB, free: 13.27 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) Environment - environmentSimulation: