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.001009/0.001009, allocations: 100.1 kB / 15.88 MB, free: 12 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.001001/0.001001, allocations: 208.3 kB / 16.79 MB, free: 6.84 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.325/1.325, allocations: 222.9 MB / 240.5 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6218/0.6218, allocations: 115.3 MB / 406 MB, free: 2.773 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002087/0.002088, allocations: 63.84 kB / 493 MB, free: 6.723 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.1443, allocations: 76.19 MB / 0.5558 GB, free: 10.73 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.00263/0.147, allocations: 1.861 MB / 0.5577 GB, free: 8.855 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008393/0.1478, allocations: 0.5338 MB / 0.5582 GB, free: 8.316 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.045e-05/0.1479, allocations: 8 kB / 0.5582 GB, free: 8.309 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001158/0.148, allocations: 15.8 kB / 0.5582 GB, free: 8.293 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 6.304e-05/0.1481, allocations: 19.8 kB / 0.5582 GB, free: 8.273 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001739/0.1483, allocations: 55.94 kB / 0.5583 GB, free: 8.219 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001797/0.1485, allocations: 167.4 kB / 0.5584 GB, free: 8.055 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001259/0.1486, allocations: 57.62 kB / 0.5585 GB, free: 8 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.482e-05/0.1487, allocations: 47.78 kB / 0.5585 GB, free: 7.953 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.497e-05/0.1488, allocations: 55.64 kB / 0.5586 GB, free: 7.898 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.052e-05/0.1488, allocations: 11.94 kB / 0.5586 GB, free: 7.887 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.791e-05/0.1488, allocations: 4 kB / 0.5586 GB, free: 7.883 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.748e-05/0.1489, allocations: 23.91 kB / 0.5586 GB, free: 7.859 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.776e-05/0.1489, allocations: 59.61 kB / 0.5587 GB, free: 7.801 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001345/0.1491, allocations: 127.7 kB / 0.5588 GB, free: 7.676 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1491, allocations: 4 kB / 0.5588 GB, free: 7.672 MB / 430.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.1491, allocations: 0 / 0.5588 GB, free: 7.672 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.1491, allocations: 3.938 kB / 0.5588 GB, free: 7.668 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.0006011/0.1497, allocations: 476.6 kB / 0.5593 GB, free: 7.156 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.1497, allocations: 8.031 kB / 0.5593 GB, free: 7.148 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.853e-05/0.1498, allocations: 42.73 kB / 0.5593 GB, free: 7.098 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.752e-05/0.1498, allocations: 20.75 kB / 0.5593 GB, free: 7.078 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002047/0.15, allocations: 231.9 kB / 0.5596 GB, free: 6.812 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.15, allocations: 8.375 kB / 0.5596 GB, free: 6.805 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.572e-05/0.1501, allocations: 12.38 kB / 0.5596 GB, free: 6.793 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002596/0.1503, allocations: 150 kB / 0.5597 GB, free: 6.625 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.682e-06/0.1504, allocations: 0 / 0.5597 GB, free: 6.625 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.38e-05/0.1504, allocations: 4 kB / 0.5597 GB, free: 6.621 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.1504, allocations: 4 kB / 0.5597 GB, free: 6.617 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002048/0.1506, allocations: 75.88 kB / 0.5598 GB, free: 6.543 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007723/0.1514, allocations: 0.7392 MB / 0.5605 GB, free: 5.738 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.1515, allocations: 38.56 kB / 0.5606 GB, free: 5.691 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.656e-05/0.1516, allocations: 32.83 kB / 0.5606 GB, free: 5.656 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.1516, allocations: 8 kB / 0.5606 GB, free: 5.648 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002315/0.1519, allocations: 126.6 kB / 0.5607 GB, free: 5.5 MB / 430.1 MB Notification: Performance of pre-optimization done (n=11): time 1.202e-06/0.1519, allocations: 0 / 0.5607 GB, free: 5.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004361/0.1523, allocations: 173.5 kB / 0.5609 GB, free: 5.324 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.772e-05/0.1524, allocations: 132.5 kB / 0.561 GB, free: 5.164 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001597/0.1526, allocations: 202.7 kB / 0.5612 GB, free: 4.957 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.1526, allocations: 29.7 kB / 0.5612 GB, free: 4.922 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.697e-05/0.1527, allocations: 132 kB / 0.5614 GB, free: 4.789 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.921e-05/0.1527, allocations: 39.45 kB / 0.5614 GB, free: 4.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.106e-05/0.1528, allocations: 37.7 kB / 0.5614 GB, free: 4.707 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.1529, allocations: 330.9 kB / 0.5617 GB, free: 4.375 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.153, allocations: 40.22 kB / 0.5618 GB, free: 4.336 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001669/0.1532, allocations: 146.4 kB / 0.5619 GB, free: 4.141 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002773/0.1535, allocations: 202.4 kB / 0.5621 GB, free: 3.891 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1535, allocations: 0 / 0.5621 GB, free: 3.891 MB / 430.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003568/0.1538, allocations: 213.2 kB / 0.5623 GB, free: 3.676 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.1539, allocations: 4 kB / 0.5623 GB, free: 3.672 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.1539, allocations: 4.047 kB / 0.5623 GB, free: 3.668 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.1539, allocations: 11.98 kB / 0.5623 GB, free: 3.656 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.154, allocations: 32.42 kB / 0.5624 GB, free: 3.625 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.154, allocations: 11.94 kB / 0.5624 GB, free: 3.613 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001276/0.1541, allocations: 27.83 kB / 0.5624 GB, free: 3.586 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/0.1542, allocations: 8 kB / 0.5624 GB, free: 3.578 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 (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.000101/0.1543, allocations: 143.7 kB / 0.5626 GB, free: 3.43 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.595e-05/0.1543, allocations: 19.81 kB / 0.5626 GB, free: 3.41 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.628e-05/0.1543, allocations: 21.39 kB / 0.5626 GB, free: 3.391 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.1544, allocations: 7.938 kB / 0.5626 GB, free: 3.383 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.1544, allocations: 4 kB / 0.5626 GB, free: 3.379 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.1544, allocations: 0 / 0.5626 GB, free: 3.379 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006549/0.155, allocations: 0.5093 MB / 0.5631 GB, free: 2.812 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.155, allocations: 4 kB / 0.5631 GB, free: 2.809 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.1552, allocations: 15.98 kB / 0.5631 GB, free: 2.793 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1552, allocations: 7.938 kB / 0.5631 GB, free: 2.785 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.1552, allocations: 8 kB / 0.5631 GB, free: 2.777 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.1552, allocations: 7.875 kB / 0.5631 GB, free: 2.77 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1552, allocations: 0 / 0.5631 GB, free: 2.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004458/0.1557, allocations: 360 kB / 0.5635 GB, free: 2.398 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.059e-05/0.1557, allocations: 88.92 kB / 0.5636 GB, free: 2.293 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.491e-05/0.1558, allocations: 4.031 kB / 0.5636 GB, free: 2.289 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.1559, allocations: 19.92 kB / 0.5636 GB, free: 2.27 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.959e-05/0.156, allocations: 15.92 kB / 0.5636 GB, free: 2.254 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/0.156, allocations: 8 kB / 0.5636 GB, free: 2.246 MB / 430.1 MB Notification: Performance of sorting global known variables: time 9.717e-05/0.1561, allocations: 140.4 kB / 0.5638 GB, free: 2.109 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1561, allocations: 4 kB / 0.5638 GB, free: 2.105 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003157/0.1564, allocations: 28 kB / 0.5638 GB, free: 2.078 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 (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.0006838/0.1571, allocations: 0.8966 MB / 0.5647 GB, free: 1.148 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002718/0.1574, allocations: 116.5 kB / 0.5648 GB, free: 1.035 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1574, allocations: 256 / 0.5648 GB, free: 1.035 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001263/0.1575, allocations: 55.91 kB / 0.5648 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004853/0.158, allocations: 51.95 kB / 0.5649 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002264/0.1603, allocations: 2.301 MB / 0.5671 GB, free: 14.44 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.1606, allocations: 0.7206 MB / 0.5678 GB, free: 13.69 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.432e-05/0.1607, allocations: 17.53 kB / 0.5678 GB, free: 13.67 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.416e-05/0.1608, allocations: 55.42 kB / 0.5679 GB, free: 13.62 MB / 446.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1608, allocations: 0 / 0.5679 GB, free: 13.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7167/0.8775, allocations: 3.652 MB / 0.5715 GB, free: 10.09 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.01703/0.8946, allocations: 200.3 kB / 0.5716 GB, free: 9.832 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.063/2.958, allocations: 0 / 0.5716 GB, free: 9.832 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/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)