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.001563/0.001563, allocations: 106 kB / 16.27 MB, free: 5.898 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.002223/0.002223, allocations: 188.5 kB / 17.19 MB, free: 5.547 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.464/1.464, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7305/0.7305, allocations: 122.9 MB / 413.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 67.89 kB / 0.4912 GB, free: 7.32 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3661/0.3674, allocations: 77.92 MB / 0.5673 GB, free: 32.75 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegerReplicator): time 0.002969/0.3704, allocations: 1.752 MB / 0.569 GB, free: 31.54 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00148/0.3719, allocations: 1.108 MB / 0.5701 GB, free: 30.77 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.998e-05/0.372, allocations: 2.438 kB / 0.5701 GB, free: 30.77 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002734/0.3723, allocations: 56.72 kB / 0.5701 GB, free: 30.75 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000209/0.3725, allocations: 71.81 kB / 0.5702 GB, free: 30.72 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005389/0.373, allocations: 234.8 kB / 0.5704 GB, free: 30.6 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001738/0.3732, allocations: 145.4 kB / 0.5706 GB, free: 30.54 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.3733, allocations: 24.73 kB / 0.5706 GB, free: 30.52 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.201e-05/0.3734, allocations: 65.98 kB / 0.5706 GB, free: 30.49 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.905e-05/0.3735, allocations: 67.66 kB / 0.5707 GB, free: 30.46 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.303e-05/0.3736, allocations: 9.094 kB / 0.5707 GB, free: 30.46 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001637/0.3737, allocations: 63.75 kB / 0.5708 GB, free: 30.45 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.234e-05/0.3738, allocations: 40.89 kB / 0.5708 GB, free: 30.43 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.968e-05/0.3739, allocations: 55.28 kB / 0.5709 GB, free: 30.39 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002702/0.3742, allocations: 198.6 kB / 0.5711 GB, free: 30.31 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3742, allocations: 6.188 kB / 0.5711 GB, free: 30.31 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3742, allocations: 0 / 0.5711 GB, free: 30.31 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.3742, allocations: 0.6562 kB / 0.5711 GB, free: 30.31 MB / 446.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.0006102/0.3748, allocations: 485.1 kB / 0.5715 GB, free: 29.85 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.3749, allocations: 13.09 kB / 0.5715 GB, free: 29.84 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.403e-05/0.3749, allocations: 43.14 kB / 0.5716 GB, free: 29.8 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.649e-05/0.3749, allocations: 16.47 kB / 0.5716 GB, free: 29.79 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002318/0.3752, allocations: 254.4 kB / 0.5718 GB, free: 29.55 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.3752, allocations: 4.281 kB / 0.5718 GB, free: 29.55 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.397e-05/0.3752, allocations: 11.39 kB / 0.5719 GB, free: 29.54 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001783/0.3754, allocations: 99.36 kB / 0.572 GB, free: 29.47 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.3754, allocations: 0 / 0.572 GB, free: 29.47 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.3754, allocations: 1.312 kB / 0.572 GB, free: 29.47 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.3755, allocations: 2.078 kB / 0.572 GB, free: 29.47 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.956e-05/0.3756, allocations: 33.27 kB / 0.572 GB, free: 29.46 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004015/0.376, allocations: 360.2 kB / 0.5723 GB, free: 29.14 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002005/0.3762, allocations: 88.77 kB / 0.5724 GB, free: 29.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.153e-05/0.3763, allocations: 36.62 kB / 0.5725 GB, free: 29.08 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.3763, allocations: 3.25 kB / 0.5725 GB, free: 29.08 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001989/0.3765, allocations: 81.36 kB / 0.5725 GB, free: 29.02 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.433e-06/0.3765, allocations: 0 / 0.5725 GB, free: 29.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003224/0.3768, allocations: 140.6 kB / 0.5727 GB, free: 28.95 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.677e-05/0.3769, allocations: 106.9 kB / 0.5728 GB, free: 28.82 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002135/0.3771, allocations: 272.1 kB / 0.573 GB, free: 28.67 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.249e-05/0.3771, allocations: 27.11 kB / 0.5731 GB, free: 28.64 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.858e-05/0.3772, allocations: 119.8 kB / 0.5732 GB, free: 28.53 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.12e-05/0.3772, allocations: 20.3 kB / 0.5732 GB, free: 28.52 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.071e-05/0.3773, allocations: 26.94 kB / 0.5732 GB, free: 28.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.805e-05/0.3773, allocations: 332.1 kB / 0.5735 GB, free: 28.18 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.457e-05/0.3774, allocations: 18.84 kB / 0.5735 GB, free: 28.17 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.767e-05/0.3775, allocations: 74.58 kB / 0.5736 GB, free: 28.12 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001451/0.3776, allocations: 67.95 kB / 0.5737 GB, free: 28.08 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3776, allocations: 0.5625 kB / 0.5737 GB, free: 28.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001989/0.3778, allocations: 121.4 kB / 0.5738 GB, free: 28.01 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.3779, allocations: 7.938 kB / 0.5738 GB, free: 28.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.3779, allocations: 10.19 kB / 0.5738 GB, free: 28 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.3779, allocations: 1.906 kB / 0.5738 GB, free: 28 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.675e-05/0.378, allocations: 12.3 kB / 0.5738 GB, free: 28 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.378, allocations: 1.125 kB / 0.5738 GB, free: 28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.26e-05/0.3781, allocations: 16.92 kB / 0.5738 GB, free: 27.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.866e-06/0.3781, allocations: 4.672 kB / 0.5739 GB, free: 27.99 MB / 446.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 ($PRE.intTab.combiTimeTable.nextTimeEvent,$whenCondition1,intRep.y[2],intRep.y[1],intTab.combiTimeTable.nextTimeEventScaled,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent,intTab.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.601e-05/0.3782, allocations: 141.8 kB / 0.574 GB, free: 27.87 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.855e-05/0.3782, allocations: 19.25 kB / 0.574 GB, free: 27.86 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.895e-05/0.3783, allocations: 19.98 kB / 0.574 GB, free: 27.85 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.3783, allocations: 3.25 kB / 0.574 GB, free: 27.85 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3783, allocations: 1.156 kB / 0.574 GB, free: 27.85 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.3783, allocations: 4.547 kB / 0.574 GB, free: 27.84 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001623/0.3785, allocations: 219.8 kB / 0.5742 GB, free: 27.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3785, allocations: 3.938 kB / 0.5742 GB, free: 27.63 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.986e-05/0.3785, allocations: 11.67 kB / 0.5743 GB, free: 27.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.3785, allocations: 0 / 0.5743 GB, free: 27.62 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.3785, allocations: 4.344 kB / 0.5743 GB, free: 27.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3785, allocations: 1.125 kB / 0.5743 GB, free: 27.62 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3786, allocations: 0 / 0.5743 GB, free: 27.62 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002166/0.3788, allocations: 151.8 kB / 0.5744 GB, free: 27.52 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.615e-05/0.3788, allocations: 92.09 kB / 0.5745 GB, free: 27.42 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.979e-05/0.3789, allocations: 6.672 kB / 0.5745 GB, free: 27.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.288e-05/0.3789, allocations: 4.234 kB / 0.5745 GB, free: 27.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.856e-05/0.379, allocations: 11.58 kB / 0.5745 GB, free: 27.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.176e-05/0.379, allocations: 4.234 kB / 0.5745 GB, free: 27.41 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001563/0.3791, allocations: 193.9 kB / 0.5747 GB, free: 27.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3791, allocations: 1.25 kB / 0.5747 GB, free: 27.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002527/0.3794, allocations: 34.22 kB / 0.5747 GB, free: 27.3 MB / 446.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001182/0.3806, allocations: 0.9879 MB / 0.5757 GB, free: 26.61 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002099/0.3808, allocations: 88.95 kB / 0.5758 GB, free: 26.58 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.3808, allocations: 0 / 0.5758 GB, free: 26.58 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 8.846e-05/0.3809, allocations: 37.95 kB / 0.5758 GB, free: 26.57 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002843/0.3812, allocations: 43.94 kB / 0.5759 GB, free: 26.55 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001791/0.383, allocations: 1.921 MB / 0.5777 GB, free: 25.19 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001479/0.3832, allocations: 0.7279 MB / 0.5785 GB, free: 24.48 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.174e-05/0.3833, allocations: 26.02 kB / 0.5785 GB, free: 24.48 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.027e-05/0.3833, allocations: 50.48 kB / 0.5785 GB, free: 24.44 MB / 446.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3833, allocations: 0 / 0.5785 GB, free: 24.44 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02088/0.4042, allocations: 4.604 MB / 0.583 GB, free: 22.87 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.447/7.851, allocations: 14.47 kB / 0.583 GB, free: 22.86 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/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)