Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.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.IntegratorWithReset,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset",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.001893/0.001893, allocations: 104.9 kB / 16.4 MB, free: 6.496 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.002356/0.002356, allocations: 192 kB / 17.34 MB, free: 5.727 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.422/1.422, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.831/0.831, allocations: 125.4 MB / 416.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00193/0.00193, allocations: 72.02 kB / 0.5716 GB, free: 27.72 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1445/0.1465, allocations: 78.56 MB / 0.6484 GB, free: 5.633 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.002936/0.1495, allocations: 1.821 MB / 0.6501 GB, free: 3.801 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009926/0.1505, allocations: 0.5455 MB / 0.6507 GB, free: 3.25 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.674e-05/0.1506, allocations: 3.938 kB / 0.6507 GB, free: 3.246 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.1507, allocations: 23.73 kB / 0.6507 GB, free: 3.223 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.029e-05/0.1508, allocations: 27.72 kB / 0.6507 GB, free: 3.195 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002068/0.151, allocations: 71.86 kB / 0.6508 GB, free: 3.125 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002375/0.1513, allocations: 163.5 kB / 0.6509 GB, free: 2.965 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00014/0.1514, allocations: 57.64 kB / 0.651 GB, free: 2.91 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.208e-05/0.1515, allocations: 51.72 kB / 0.6511 GB, free: 2.859 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.606e-05/0.1516, allocations: 63.64 kB / 0.6511 GB, free: 2.797 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.48e-05/0.1516, allocations: 8 kB / 0.6511 GB, free: 2.789 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.463e-05/0.1517, allocations: 12 kB / 0.6511 GB, free: 2.777 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.901e-05/0.1517, allocations: 27.91 kB / 0.6512 GB, free: 2.75 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.884e-05/0.1518, allocations: 67.55 kB / 0.6512 GB, free: 2.684 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001931/0.152, allocations: 135.6 kB / 0.6514 GB, free: 2.551 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.152, allocations: 0 / 0.6514 GB, free: 2.551 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.152, allocations: 0 / 0.6514 GB, free: 2.551 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.152, allocations: 0 / 0.6514 GB, free: 2.551 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007325/0.1527, allocations: 482.5 kB / 0.6518 GB, free: 2.031 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.1528, allocations: 12.02 kB / 0.6518 GB, free: 2.02 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.503e-05/0.1528, allocations: 38.75 kB / 0.6519 GB, free: 1.973 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.072e-05/0.1529, allocations: 16.84 kB / 0.6519 GB, free: 1.957 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000325/0.1532, allocations: 252 kB / 0.6521 GB, free: 1.672 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.1532, allocations: 8.234 kB / 0.6521 GB, free: 1.664 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.002e-05/0.1533, allocations: 12.38 kB / 0.6521 GB, free: 1.652 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003071/0.1536, allocations: 152.1 kB / 0.6523 GB, free: 1.484 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.1536, allocations: 0 / 0.6523 GB, free: 1.484 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/0.1536, allocations: 8 kB / 0.6523 GB, free: 1.477 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.1536, allocations: 0 / 0.6523 GB, free: 1.477 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002557/0.1539, allocations: 75.81 kB / 0.6524 GB, free: 1.402 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001065/0.155, allocations: 0.7432 MB / 0.6531 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001518/0.1551, allocations: 42.56 kB / 0.6531 GB, free: 0.543 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/0.1553, allocations: 36.83 kB / 0.6532 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.014e-05/0.1553, allocations: 7.938 kB / 0.6532 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002599/0.1556, allocations: 126.7 kB / 0.6533 GB, free: 356 kB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.272e-06/0.1556, allocations: 0 / 0.6533 GB, free: 356 kB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005072/0.1561, allocations: 169.4 kB / 0.6535 GB, free: 180 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.355e-05/0.1562, allocations: 136.5 kB / 0.6536 GB, free: 12 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002179/0.1564, allocations: 207 kB / 0.6538 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.979e-05/0.1564, allocations: 25.7 kB / 0.6538 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.653e-05/0.1565, allocations: 132 kB / 0.6539 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.824e-05/0.1566, allocations: 39.84 kB / 0.654 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.474e-05/0.1566, allocations: 41.7 kB / 0.654 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001515/0.1568, allocations: 334.8 kB / 0.6543 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/0.1569, allocations: 35.97 kB / 0.6544 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/0.1572, allocations: 152.3 kB / 0.6545 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003402/0.1575, allocations: 198.4 kB / 0.6547 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1575, allocations: 0 / 0.6547 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004368/0.158, allocations: 209.1 kB / 0.6549 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.158, allocations: 7.984 kB / 0.6549 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.158, allocations: 4.75 kB / 0.6549 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.158, allocations: 12 kB / 0.6549 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.1582, allocations: 39.92 kB / 0.655 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.1582, allocations: 4 kB / 0.655 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001431/0.1583, allocations: 23.88 kB / 0.655 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.668e-05/0.1583, allocations: 12 kB / 0.655 GB, free: 14.42 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * 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 0.0001219/0.1585, allocations: 137.7 kB / 0.6551 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.858e-05/0.1585, allocations: 15.91 kB / 0.6551 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.73e-05/0.1586, allocations: 21.39 kB / 0.6552 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1586, allocations: 8 kB / 0.6552 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.1586, allocations: 0 / 0.6552 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1586, allocations: 0 / 0.6552 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008074/0.1594, allocations: 0.517 MB / 0.6557 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1594, allocations: 0 / 0.6557 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.1595, allocations: 19.98 kB / 0.6557 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.628e-06/0.1596, allocations: 0 / 0.6557 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.1596, allocations: 11.94 kB / 0.6557 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.1596, allocations: 3.938 kB / 0.6557 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1596, allocations: 0 / 0.6557 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005391/0.1601, allocations: 363.9 kB / 0.6561 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.854e-05/0.1602, allocations: 89.02 kB / 0.6561 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.94e-05/0.1602, allocations: 12.03 kB / 0.6562 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001693/0.1604, allocations: 12.02 kB / 0.6562 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.72e-05/0.1605, allocations: 19.97 kB / 0.6562 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.1605, allocations: 4 kB / 0.6562 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001301/0.1606, allocations: 152.3 kB / 0.6563 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1606, allocations: 0 / 0.6563 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003333/0.161, allocations: 28 kB / 0.6564 GB, free: 12.91 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0009156/0.1619, allocations: 0.9045 MB / 0.6572 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000343/0.1623, allocations: 112.7 kB / 0.6573 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.1623, allocations: 8.062 kB / 0.6574 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001499/0.1624, allocations: 47.91 kB / 0.6574 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005729/0.163, allocations: 64.3 kB / 0.6575 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002774/0.1658, allocations: 2.255 MB / 0.6597 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003788/0.1662, allocations: 0.7242 MB / 0.6604 GB, free: 8.551 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.084e-05/0.1663, allocations: 21.55 kB / 0.6604 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.311e-05/0.1664, allocations: 47.42 kB / 0.6604 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of SimCode: time 4.51e-07/0.1664, allocations: 0 / 0.6604 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02773/0.1941, allocations: 4.017 MB / 0.6644 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.355/9.549, allocations: 5.828 kB / 0.6644 GB, free: 4.57 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)