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.0007054/0.0007055, allocations: 92.78 kB / 15.7 MB, free: 472 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.0007687/0.0007687, allocations: 179.1 kB / 16.58 MB, free: 5.688 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.179/1.179, allocations: 223.3 MB / 240.6 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6094/0.6094, allocations: 113.7 MB / 405.4 MB, free: 4.566 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002679/0.000268, allocations: 13.84 kB / 493.1 MB, free: 8.562 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1177, allocations: 77.12 MB / 0.5569 GB, free: 11.65 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.001581/0.1193, allocations: 1.473 MB / 0.5583 GB, free: 10.17 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006933/0.12, allocations: 0.5069 MB / 0.5588 GB, free: 9.656 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.737e-05/0.1201, allocations: 0 / 0.5588 GB, free: 9.656 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 9.31e-05/0.1202, allocations: 19.8 kB / 0.5588 GB, free: 9.637 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 6.433e-05/0.1203, allocations: 23.78 kB / 0.5589 GB, free: 9.613 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001532/0.1204, allocations: 55.95 kB / 0.5589 GB, free: 9.559 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001571/0.1206, allocations: 143.5 kB / 0.5591 GB, free: 9.418 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.1207, allocations: 45.77 kB / 0.5591 GB, free: 9.371 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.758e-05/0.1208, allocations: 43.73 kB / 0.5591 GB, free: 9.328 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.218e-05/0.1208, allocations: 47.7 kB / 0.5592 GB, free: 9.281 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.663e-05/0.1209, allocations: 4 kB / 0.5592 GB, free: 9.277 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.424e-05/0.1209, allocations: 7.938 kB / 0.5592 GB, free: 9.27 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.117e-05/0.1209, allocations: 23.91 kB / 0.5592 GB, free: 9.246 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.697e-05/0.1209, allocations: 53.58 kB / 0.5593 GB, free: 9.188 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 9.81e-05/0.1211, allocations: 84.05 kB / 0.5594 GB, free: 9.105 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.1211, allocations: 0 / 0.5594 GB, free: 9.105 MB / 430.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.1211, allocations: 0 / 0.5594 GB, free: 9.105 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.046e-06/0.1211, allocations: 0 / 0.5594 GB, free: 9.105 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0005319/0.1216, allocations: 458.6 kB / 0.5598 GB, free: 8.609 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.908e-05/0.1216, allocations: 8.031 kB / 0.5598 GB, free: 8.602 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.759e-05/0.1217, allocations: 46.55 kB / 0.5598 GB, free: 8.547 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.603e-05/0.1217, allocations: 15.81 kB / 0.5599 GB, free: 8.531 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001954/0.1219, allocations: 222.7 kB / 0.5601 GB, free: 8.273 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.1219, allocations: 12 kB / 0.5601 GB, free: 8.262 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.374e-05/0.122, allocations: 15.91 kB / 0.5601 GB, free: 8.246 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002513/0.1222, allocations: 150.9 kB / 0.5602 GB, free: 8.078 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.1223, allocations: 3.938 kB / 0.5602 GB, free: 8.074 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.1223, allocations: 4 kB / 0.5602 GB, free: 8.07 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.976e-06/0.1223, allocations: 8 kB / 0.5603 GB, free: 8.062 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002063/0.1225, allocations: 83.88 kB / 0.5603 GB, free: 7.98 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007424/0.1232, allocations: 0.7355 MB / 0.5611 GB, free: 7.18 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001253/0.1234, allocations: 62.53 kB / 0.5611 GB, free: 7.109 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.853e-05/0.1235, allocations: 32.84 kB / 0.5611 GB, free: 7.074 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.712e-05/0.1235, allocations: 0 / 0.5611 GB, free: 7.074 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002276/0.1237, allocations: 142.8 kB / 0.5613 GB, free: 6.91 MB / 430.1 MB Notification: Performance of pre-optimization done (n=11): time 9.52e-07/0.1237, allocations: 0 / 0.5613 GB, free: 6.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004134/0.1242, allocations: 185.4 kB / 0.5615 GB, free: 6.723 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.859e-05/0.1242, allocations: 136.5 kB / 0.5616 GB, free: 6.559 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.1244, allocations: 199.5 kB / 0.5618 GB, free: 6.355 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.1244, allocations: 25.7 kB / 0.5618 GB, free: 6.324 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.592e-05/0.1245, allocations: 131.8 kB / 0.5619 GB, free: 6.191 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.979e-05/0.1245, allocations: 35.55 kB / 0.562 GB, free: 6.156 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.363e-06/0.1245, allocations: 4 kB / 0.562 GB, free: 6.152 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.1247, allocations: 334.8 kB / 0.5623 GB, free: 5.816 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/0.1248, allocations: 36.36 kB / 0.5623 GB, free: 5.781 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001645/0.1249, allocations: 158.1 kB / 0.5625 GB, free: 5.578 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001183/0.1251, allocations: 59.97 kB / 0.5625 GB, free: 5.52 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.1251, allocations: 7.953 kB / 0.5625 GB, free: 5.512 MB / 430.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003409/0.1254, allocations: 213.3 kB / 0.5627 GB, free: 5.297 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.1254, allocations: 8 kB / 0.5627 GB, free: 5.289 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.1255, allocations: 4 kB / 0.5628 GB, free: 5.285 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.1255, allocations: 4 kB / 0.5628 GB, free: 5.281 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.1256, allocations: 39.91 kB / 0.5628 GB, free: 5.242 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.1256, allocations: 12.12 kB / 0.5628 GB, free: 5.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001298/0.1257, allocations: 35.83 kB / 0.5628 GB, free: 5.195 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.1258, allocations: 8 kB / 0.5628 GB, free: 5.188 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,sampleTrigger.y,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.837e-05/0.1259, allocations: 132.3 kB / 0.563 GB, free: 5.051 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.735e-05/0.1259, allocations: 27.67 kB / 0.563 GB, free: 5.023 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.674e-05/0.1259, allocations: 21.39 kB / 0.563 GB, free: 5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.1259, allocations: 4 kB / 0.563 GB, free: 4.996 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1259, allocations: 4 kB / 0.563 GB, free: 4.992 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.126, allocations: 0 / 0.563 GB, free: 4.992 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006291/0.1266, allocations: 0.5289 MB / 0.5635 GB, free: 4.406 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1266, allocations: 0 / 0.5635 GB, free: 4.406 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001004/0.1267, allocations: 19.98 kB / 0.5636 GB, free: 4.387 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.1267, allocations: 0 / 0.5636 GB, free: 4.387 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.1267, allocations: 7.984 kB / 0.5636 GB, free: 4.379 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.1267, allocations: 3.938 kB / 0.5636 GB, free: 4.375 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.1267, allocations: 7.938 kB / 0.5636 GB, free: 4.367 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000398/0.1272, allocations: 372.5 kB / 0.5639 GB, free: 3.98 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.232e-05/0.1272, allocations: 92.92 kB / 0.564 GB, free: 3.871 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.112e-05/0.1272, allocations: 4 kB / 0.564 GB, free: 3.867 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.1274, allocations: 24.03 kB / 0.5641 GB, free: 3.844 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.892e-05/0.1274, allocations: 15.91 kB / 0.5641 GB, free: 3.828 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.1274, allocations: 8 kB / 0.5641 GB, free: 3.82 MB / 430.1 MB Notification: Performance of sorting global known variables: time 9.269e-05/0.1275, allocations: 144.4 kB / 0.5642 GB, free: 3.68 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1275, allocations: 0 / 0.5642 GB, free: 3.68 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000295/0.1278, allocations: 28 kB / 0.5642 GB, free: 3.652 MB / 430.1 MB 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 (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.0006321/0.1285, allocations: 0.9121 MB / 0.5651 GB, free: 2.711 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002615/0.1288, allocations: 125.1 kB / 0.5652 GB, free: 2.59 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1288, allocations: 0 / 0.5652 GB, free: 2.59 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001179/0.1289, allocations: 56.11 kB / 0.5653 GB, free: 2.535 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000453/0.1294, allocations: 60.11 kB / 0.5654 GB, free: 2.477 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.1308, allocations: 1.121 MB / 0.5665 GB, free: 1.246 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002261/0.131, allocations: 0.7245 MB / 0.5672 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.033e-05/0.1311, allocations: 13.55 kB / 0.5672 GB, free: 492 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.068e-05/0.1311, allocations: 51.42 kB / 0.5672 GB, free: 440 kB / 430.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1311, allocations: 0 / 0.5672 GB, free: 440 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01191/0.1431, allocations: 3.542 MB / 0.5707 GB, free: 13.05 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001734/0.1432, allocations: 189.2 kB / 0.5709 GB, free: 12.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.499/1.642, allocations: 0 / 0.5709 GB, free: 12.8 MB / 446.1 MB (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/linux/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) Environment - environmentSimulation: