Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_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.004794/0.004794, allocations: 99.31 kB / 15.73 MB, free: 6.047 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.001154/0.001154, allocations: 186.3 kB / 16.67 MB, free: 5.977 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.268/1.268, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00207/0.00207, allocations: 290.1 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9149/0.9149, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001836/0.001836, allocations: 98.52 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.151/0.1529, allocations: 86.98 MB / 0.7659 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.002891/0.1558, allocations: 1.824 MB / 0.7677 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009965/0.1568, allocations: 0.5499 MB / 0.7682 GB, free: 6.535 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001233/0.157, allocations: 3.938 kB / 0.7682 GB, free: 6.531 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000142/0.1571, allocations: 23.73 kB / 0.7683 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.625e-05/0.1572, allocations: 23.72 kB / 0.7683 GB, free: 6.484 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002148/0.1574, allocations: 71.84 kB / 0.7683 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002109/0.1577, allocations: 167.5 kB / 0.7685 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.1578, allocations: 57.86 kB / 0.7686 GB, free: 6.191 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 8.386e-05/0.1579, allocations: 59.72 kB / 0.7686 GB, free: 6.133 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.326e-05/0.158, allocations: 59.62 kB / 0.7687 GB, free: 6.074 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.215e-05/0.158, allocations: 8 kB / 0.7687 GB, free: 6.066 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 1.936e-05/0.158, allocations: 12 kB / 0.7687 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.042e-05/0.1581, allocations: 23.92 kB / 0.7687 GB, free: 6.031 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.22e-05/0.1581, allocations: 67.55 kB / 0.7688 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001581/0.1583, allocations: 139.5 kB / 0.7689 GB, free: 5.828 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1583, allocations: 0 / 0.7689 GB, free: 5.828 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.162e-06/0.1583, allocations: 3.938 kB / 0.7689 GB, free: 5.824 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.1583, allocations: 0 / 0.7689 GB, free: 5.824 MB / 0.5606 GB 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.0006473/0.159, allocations: 478.6 kB / 0.7694 GB, free: 5.309 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.159, allocations: 8.031 kB / 0.7694 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.321e-05/0.1591, allocations: 42.75 kB / 0.7694 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.004e-05/0.1591, allocations: 24.66 kB / 0.7694 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003846/0.1595, allocations: 228 kB / 0.7697 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.1595, allocations: 8.375 kB / 0.7697 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.495e-05/0.1596, allocations: 20.28 kB / 0.7697 GB, free: 4.938 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002791/0.1599, allocations: 148.1 kB / 0.7698 GB, free: 4.773 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.1599, allocations: 4 kB / 0.7698 GB, free: 4.77 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.1599, allocations: 0 / 0.7698 GB, free: 4.77 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.1599, allocations: 7.938 kB / 0.7698 GB, free: 4.762 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002105/0.1601, allocations: 71.88 kB / 0.7699 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008629/0.161, allocations: 0.7392 MB / 0.7706 GB, free: 3.887 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001365/0.1611, allocations: 46.56 kB / 0.7707 GB, free: 3.832 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.531e-05/0.1612, allocations: 36.83 kB / 0.7707 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.773e-05/0.1613, allocations: 0 / 0.7707 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002211/0.1615, allocations: 134.6 kB / 0.7708 GB, free: 3.637 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=11): time 1.253e-06/0.1615, allocations: 0 / 0.7708 GB, free: 3.637 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.0004287/0.1619, allocations: 169.3 kB / 0.771 GB, free: 3.465 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.255e-05/0.162, allocations: 132.5 kB / 0.7711 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.1622, allocations: 195.1 kB / 0.7713 GB, free: 3.105 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.1622, allocations: 33.7 kB / 0.7713 GB, free: 3.066 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.55e-05/0.1623, allocations: 131.7 kB / 0.7715 GB, free: 2.934 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.794e-05/0.1623, allocations: 35.8 kB / 0.7715 GB, free: 2.898 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.713e-05/0.1624, allocations: 45.7 kB / 0.7716 GB, free: 2.848 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.57e-05/0.1625, allocations: 326.8 kB / 0.7719 GB, free: 2.52 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.1626, allocations: 35.97 kB / 0.7719 GB, free: 2.484 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001791/0.1628, allocations: 152.9 kB / 0.772 GB, free: 2.285 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002794/0.1631, allocations: 194.4 kB / 0.7722 GB, free: 2.043 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.1631, allocations: 4 kB / 0.7722 GB, free: 2.039 MB / 0.5606 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000371/0.1635, allocations: 209 kB / 0.7724 GB, free: 1.828 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.1635, allocations: 8 kB / 0.7724 GB, free: 1.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.1635, allocations: 4.5 kB / 0.7724 GB, free: 1.816 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.1635, allocations: 8 kB / 0.7725 GB, free: 1.809 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.1636, allocations: 31.92 kB / 0.7725 GB, free: 1.777 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.395e-06/0.1637, allocations: 4 kB / 0.7725 GB, free: 1.773 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001443/0.1638, allocations: 31.98 kB / 0.7725 GB, free: 1.742 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.1638, allocations: 8 kB / 0.7725 GB, free: 1.734 MB / 0.5606 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 9.912e-05/0.1639, allocations: 146.3 kB / 0.7727 GB, free: 1.582 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.756e-05/0.164, allocations: 15.81 kB / 0.7727 GB, free: 1.566 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.79e-05/0.164, allocations: 33.33 kB / 0.7727 GB, free: 1.531 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.164, allocations: 4 kB / 0.7727 GB, free: 1.527 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.164, allocations: 0 / 0.7727 GB, free: 1.527 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.1641, allocations: 4 kB / 0.7727 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006718/0.1647, allocations: 0.5093 MB / 0.7732 GB, free: 0.957 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.1647, allocations: 0 / 0.7732 GB, free: 0.957 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/0.1649, allocations: 19.98 kB / 0.7732 GB, free: 0.9375 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.1649, allocations: 3.938 kB / 0.7732 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.1649, allocations: 4 kB / 0.7732 GB, free: 0.9297 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.1649, allocations: 3.938 kB / 0.7732 GB, free: 0.9258 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.1649, allocations: 4 kB / 0.7732 GB, free: 0.9219 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004386/0.1653, allocations: 360.1 kB / 0.7736 GB, free: 0.5469 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.881e-05/0.1654, allocations: 92.86 kB / 0.7737 GB, free: 448 kB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.693e-05/0.1654, allocations: 8.031 kB / 0.7737 GB, free: 440 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001619/0.1656, allocations: 19.92 kB / 0.7737 GB, free: 420 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.486e-05/0.1657, allocations: 11.92 kB / 0.7737 GB, free: 408 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.1657, allocations: 8 kB / 0.7737 GB, free: 400 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001006/0.1658, allocations: 145.1 kB / 0.7739 GB, free: 256 kB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1658, allocations: 0 / 0.7739 GB, free: 256 kB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003188/0.1661, allocations: 28 kB / 0.7739 GB, free: 228 kB / 0.5606 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.3007/0.4668, allocations: 0.8904 MB / 0.7748 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004742/0.4673, allocations: 123.9 kB / 0.7749 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.349e-06/0.4673, allocations: 0.5938 kB / 0.7749 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001946/0.4675, allocations: 47.95 kB / 0.7749 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006103/0.4682, allocations: 68.33 kB / 0.775 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002353/0.4705, allocations: 2.263 MB / 0.7772 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001556/0.4707, allocations: 0.7262 MB / 0.7779 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001145/0.4708, allocations: 17.89 kB / 0.7779 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.625e-05/0.4709, allocations: 56.59 kB / 0.778 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of SimCode: time 3.71e-07/0.4709, allocations: 0 / 0.778 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02245/0.4934, allocations: 4.125 MB / 0.782 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.193/7.687, allocations: 1 kB / 0.782 GB, free: 11.22 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)