Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_IDEAS_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.004554/0.004554, allocations: 95.3 kB / 15.73 MB, free: 6.484 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.001213/0.001213, allocations: 191.3 kB / 16.67 MB, free: 6.391 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.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7447/0.7447, allocations: 132.2 MB / 422.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001769/0.001769, allocations: 71.42 kB / 0.5809 GB, free: 1.109 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1421, allocations: 80.21 MB / 0.6592 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.002804/0.145, allocations: 1.808 MB / 0.661 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009059/0.1459, allocations: 0.5415 MB / 0.6615 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.75e-05/0.146, allocations: 7.938 kB / 0.6615 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001305/0.1461, allocations: 19.73 kB / 0.6615 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.828e-05/0.1462, allocations: 27.73 kB / 0.6616 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002116/0.1464, allocations: 75.78 kB / 0.6616 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002317/0.1467, allocations: 171.5 kB / 0.6618 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001402/0.1468, allocations: 41.66 kB / 0.6618 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.334e-05/0.1469, allocations: 67.7 kB / 0.6619 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.156e-05/0.147, allocations: 55.64 kB / 0.6619 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.723e-05/0.147, allocations: 12 kB / 0.662 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.086e-05/0.1471, allocations: 8 kB / 0.662 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.365e-05/0.1471, allocations: 23.92 kB / 0.662 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.672e-05/0.1472, allocations: 71.53 kB / 0.6621 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001858/0.1474, allocations: 139.5 kB / 0.6622 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.1474, allocations: 0 / 0.6622 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.242e-06/0.1474, allocations: 0 / 0.6622 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.971e-06/0.1474, allocations: 0 / 0.6622 GB, free: 10.91 MB / 0.4981 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.0007321/0.1481, allocations: 478.6 kB / 0.6626 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.1482, allocations: 8.031 kB / 0.6627 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.376e-05/0.1482, allocations: 46.73 kB / 0.6627 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.987e-05/0.1483, allocations: 20.8 kB / 0.6627 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002982/0.1486, allocations: 232 kB / 0.6629 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.1486, allocations: 16.38 kB / 0.663 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.77e-05/0.1486, allocations: 12.38 kB / 0.663 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002865/0.1489, allocations: 146 kB / 0.6631 GB, free: 9.855 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.149, allocations: 0 / 0.6631 GB, free: 9.855 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.149, allocations: 7.984 kB / 0.6631 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.149, allocations: 4 kB / 0.6631 GB, free: 9.844 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002184/0.1492, allocations: 67.89 kB / 0.6632 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008742/0.1501, allocations: 0.7393 MB / 0.6639 GB, free: 8.973 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001475/0.1503, allocations: 54.48 kB / 0.664 GB, free: 8.91 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.1504, allocations: 28.84 kB / 0.664 GB, free: 8.879 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.1504, allocations: 0 / 0.664 GB, free: 8.879 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000241/0.1506, allocations: 142.8 kB / 0.6641 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.203e-06/0.1507, allocations: 0 / 0.6641 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004679/0.1511, allocations: 169.4 kB / 0.6643 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.26e-05/0.1512, allocations: 132.8 kB / 0.6644 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000189/0.1514, allocations: 198.8 kB / 0.6646 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.1514, allocations: 33.7 kB / 0.6646 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.386e-05/0.1515, allocations: 136 kB / 0.6648 GB, free: 8 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.09e-05/0.1516, allocations: 31.7 kB / 0.6648 GB, free: 7.969 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.455e-05/0.1517, allocations: 45.7 kB / 0.6648 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001384/0.1518, allocations: 334.8 kB / 0.6652 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001342/0.1519, allocations: 39.97 kB / 0.6652 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001935/0.1521, allocations: 149.6 kB / 0.6653 GB, free: 7.348 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000317/0.1525, allocations: 202.2 kB / 0.6655 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1525, allocations: 4 kB / 0.6655 GB, free: 7.094 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003975/0.1529, allocations: 209.3 kB / 0.6657 GB, free: 6.883 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.1529, allocations: 8 kB / 0.6657 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.1529, allocations: 4 kB / 0.6657 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.1529, allocations: 4 kB / 0.6657 GB, free: 6.867 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/0.1531, allocations: 31.92 kB / 0.6658 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.1531, allocations: 11.92 kB / 0.6658 GB, free: 6.824 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001417/0.1532, allocations: 32.19 kB / 0.6658 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.433e-05/0.1532, allocations: 8 kB / 0.6658 GB, free: 6.785 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.0001098/0.1534, allocations: 138.4 kB / 0.666 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.85e-05/0.1534, allocations: 15.91 kB / 0.666 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.299e-05/0.1534, allocations: 21.39 kB / 0.666 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.1535, allocations: 4 kB / 0.666 GB, free: 6.598 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1535, allocations: 0 / 0.666 GB, free: 6.598 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.1535, allocations: 4 kB / 0.666 GB, free: 6.594 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007413/0.1542, allocations: 0.5171 MB / 0.6665 GB, free: 6.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1542, allocations: 3.938 kB / 0.6665 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.1543, allocations: 19.92 kB / 0.6665 GB, free: 5.996 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.1544, allocations: 4 kB / 0.6665 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.1544, allocations: 0 / 0.6665 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.149e-06/0.1544, allocations: 7.938 kB / 0.6665 GB, free: 5.984 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1544, allocations: 320 / 0.6665 GB, free: 5.984 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004955/0.1549, allocations: 360.3 kB / 0.6669 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.679e-05/0.155, allocations: 93.05 kB / 0.667 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.868e-05/0.155, allocations: 12 kB / 0.667 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001663/0.1552, allocations: 19.92 kB / 0.667 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.971e-05/0.1552, allocations: 7.984 kB / 0.667 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.187e-06/0.1552, allocations: 4 kB / 0.667 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001154/0.1553, allocations: 144.6 kB / 0.6672 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1554, allocations: 0 / 0.6672 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003168/0.1557, allocations: 27.98 kB / 0.6672 GB, free: 5.289 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.000807/0.1565, allocations: 0.9032 MB / 0.6681 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003102/0.1568, allocations: 120.3 kB / 0.6682 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1568, allocations: 0 / 0.6682 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001398/0.157, allocations: 48.91 kB / 0.6682 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005347/0.1575, allocations: 74.44 kB / 0.6683 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002486/0.16, allocations: 2.272 MB / 0.6705 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.1603, allocations: 0.7203 MB / 0.6712 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.22e-05/0.1604, allocations: 21.53 kB / 0.6712 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.943e-05/0.1605, allocations: 47.42 kB / 0.6713 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of SimCode: time 2.6e-07/0.1605, allocations: 0 / 0.6713 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.256/0.4165, allocations: 4.016 MB / 0.6752 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.452/8.868, allocations: 14.16 kB / 0.6752 GB, free: 12.96 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset.fmu > IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)