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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 182.3 kB / 15.76 MB, free: 6.359 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.5056/0.5056, allocations: 91.98 MB / 108.5 MB, free: 13.06 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.526/1.526, allocations: 223.2 MB / 354.3 MB, free: 10.48 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009542/0.0009541, allocations: 100.2 kB / 427.4 MB, free: 2.23 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003468/0.0003471, allocations: 12 kB / 0.4983 GB, free: 42.02 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.1664, allocations: 72.31 MB / 0.5689 GB, free: 1.648 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4516/0.618, allocations: 106 MB / 0.6724 GB, free: 14.43 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002333/0.6183, allocations: 79.95 kB / 0.6725 GB, free: 14.35 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01529/0.6336, allocations: 5.573 MB / 0.6779 GB, free: 8.797 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.6337, allocations: 0 / 0.6779 GB, free: 8.797 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.229e-05/0.6337, allocations: 4 kB / 0.6779 GB, free: 8.793 MB / 474.7 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.0006845/0.6344, allocations: 0.4883 MB / 0.6784 GB, free: 8.25 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.6345, allocations: 8.031 kB / 0.6784 GB, free: 8.242 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.705e-05/0.6345, allocations: 42.5 kB / 0.6785 GB, free: 8.191 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.341e-05/0.6346, allocations: 15.81 kB / 0.6785 GB, free: 8.176 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004147/0.635, allocations: 263.6 kB / 0.6787 GB, free: 7.875 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.635, allocations: 8 kB / 0.6787 GB, free: 7.867 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.875e-05/0.6351, allocations: 4 kB / 0.6787 GB, free: 7.863 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002224/0.6353, allocations: 100.1 kB / 0.6788 GB, free: 7.75 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.6353, allocations: 4 kB / 0.6788 GB, free: 7.746 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.6353, allocations: 0 / 0.6788 GB, free: 7.746 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.034e-05/0.6354, allocations: 3.953 kB / 0.6788 GB, free: 7.742 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001136/0.6355, allocations: 35.98 kB / 0.6789 GB, free: 7.707 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005725/0.6361, allocations: 372.7 kB / 0.6792 GB, free: 7.293 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002408/0.6363, allocations: 86.66 kB / 0.6793 GB, free: 7.199 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.6363, allocations: 0 / 0.6793 GB, free: 7.199 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001986/0.6365, allocations: 91.42 kB / 0.6794 GB, free: 7.098 MB / 474.7 MB Notification: Performance of pre-optimization done (n=8): time 1.613e-06/0.6366, allocations: 0 / 0.6794 GB, free: 7.098 MB / 474.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004733/0.637, allocations: 222.6 kB / 0.6796 GB, free: 6.855 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.297e-05/0.6371, allocations: 110.8 kB / 0.6797 GB, free: 6.723 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002886/0.6374, allocations: 245.8 kB / 0.6799 GB, free: 6.469 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.164e-05/0.6375, allocations: 33.7 kB / 0.68 GB, free: 6.43 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.845e-05/0.6375, allocations: 112.1 kB / 0.6801 GB, free: 6.316 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.261e-05/0.6376, allocations: 19.8 kB / 0.6801 GB, free: 6.297 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.742e-06/0.6376, allocations: 8 kB / 0.6801 GB, free: 6.289 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.6378, allocations: 322.8 kB / 0.6804 GB, free: 5.965 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.562e-05/0.6378, allocations: 27.92 kB / 0.6804 GB, free: 5.938 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001058/0.638, allocations: 76.27 kB / 0.6805 GB, free: 5.848 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.413e-05/0.638, allocations: 31.98 kB / 0.6806 GB, free: 5.816 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.6381, allocations: 4 kB / 0.6806 GB, free: 5.812 MB / 474.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002298/0.6383, allocations: 113.4 kB / 0.6807 GB, free: 5.695 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.6383, allocations: 11.94 kB / 0.6807 GB, free: 5.684 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.6383, allocations: 0 / 0.6807 GB, free: 5.684 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.6384, allocations: 0 / 0.6807 GB, free: 5.684 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.663e-05/0.6385, allocations: 16 kB / 0.6807 GB, free: 5.668 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.6385, allocations: 400 / 0.6807 GB, free: 5.668 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.948e-05/0.6386, allocations: 19.81 kB / 0.6807 GB, free: 5.648 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.6386, allocations: 4 kB / 0.6807 GB, free: 5.645 MB / 474.7 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.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,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.0001464/0.6387, allocations: 157.8 kB / 0.6809 GB, free: 5.48 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.901e-05/0.6388, allocations: 11.81 kB / 0.6809 GB, free: 5.469 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002868/0.6391, allocations: 135.1 kB / 0.681 GB, free: 5.324 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.19e-05/0.6391, allocations: 8.031 kB / 0.681 GB, free: 5.316 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.6391, allocations: 3.938 kB / 0.681 GB, free: 5.312 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.6391, allocations: 3.938 kB / 0.681 GB, free: 5.309 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000208/0.6393, allocations: 229.6 kB / 0.6812 GB, free: 5.035 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.6393, allocations: 0 / 0.6812 GB, free: 5.035 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.279e-05/0.6394, allocations: 15.98 kB / 0.6813 GB, free: 5.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.6394, allocations: 0 / 0.6813 GB, free: 5.02 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.6394, allocations: 0 / 0.6813 GB, free: 5.02 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.6394, allocations: 3.953 kB / 0.6813 GB, free: 5.016 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.6394, allocations: 0 / 0.6813 GB, free: 5.016 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002578/0.6397, allocations: 153.5 kB / 0.6814 GB, free: 4.848 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.805e-05/0.6398, allocations: 100.9 kB / 0.6815 GB, free: 4.73 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.18e-05/0.6398, allocations: 4 kB / 0.6815 GB, free: 4.727 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.343e-05/0.6399, allocations: 8 kB / 0.6815 GB, free: 4.719 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.422e-05/0.64, allocations: 11.94 kB / 0.6815 GB, free: 4.707 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-06/0.64, allocations: 7.984 kB / 0.6815 GB, free: 4.699 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0001912/0.6402, allocations: 196.4 kB / 0.6817 GB, free: 4.508 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6402, allocations: 0 / 0.6817 GB, free: 4.508 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0002886/0.6405, allocations: 51.92 kB / 0.6818 GB, free: 4.457 MB / 474.7 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.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * 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.001461/0.6419, allocations: 1.02 MB / 0.6828 GB, free: 3.574 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.000248/0.6422, allocations: 83.89 kB / 0.6828 GB, free: 3.492 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.6422, allocations: 0 / 0.6828 GB, free: 3.492 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.6423, allocations: 43.97 kB / 0.6829 GB, free: 3.449 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/0.6426, allocations: 30.44 kB / 0.6829 GB, free: 3.422 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00174/0.6444, allocations: 1.137 MB / 0.684 GB, free: 2.234 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.6448, allocations: 0.7243 MB / 0.6847 GB, free: 1.484 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0001076/0.6449, allocations: 33.36 kB / 0.6848 GB, free: 1.449 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.409e-05/0.645, allocations: 47.42 kB / 0.6848 GB, free: 1.406 MB / 474.7 MB Notification: Performance of SimCode: time 5.01e-07/0.645, allocations: 0 / 0.6848 GB, free: 1.406 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01849/0.6635, allocations: 4.251 MB / 0.689 GB, free: 13.29 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00024/0.6638, allocations: 210.2 kB / 0.6892 GB, free: 13.05 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.78/2.444, allocations: 0 / 0.6892 GB, free: 13.05 MB / 490.7 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)