Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.Continuous.Examples.OffTimer.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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Controls.Continuous.Examples.OffTimer,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_OffTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.OffTimer,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_OffTimer",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.01288/0.01288, allocations: 98.02 kB / 15.73 MB, free: 6.055 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.003067/0.003067, allocations: 193.5 kB / 16.68 MB, free: 5.969 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.52/1.52, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8365/0.8365, allocations: 135.1 MB / 425.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 59.88 kB / 0.5851 GB, free: 21.85 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1754/0.1766, allocations: 80.93 MB / 0.6641 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.OffTimer): time 0.003455/0.1802, allocations: 1.466 MB / 0.6656 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009413/0.1811, allocations: 442.9 kB / 0.666 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.06e-05/0.1813, allocations: 0 / 0.666 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 4.969e-05/0.1813, allocations: 7.922 kB / 0.666 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001272/0.1815, allocations: 3.938 kB / 0.666 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002094/0.1817, allocations: 23.92 kB / 0.666 GB, free: 4.375 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001176/0.1818, allocations: 59.84 kB / 0.6661 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.182, allocations: 19.95 kB / 0.6661 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.143e-05/0.182, allocations: 15.94 kB / 0.6661 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.958e-05/0.1821, allocations: 23.91 kB / 0.6661 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.615e-05/0.1822, allocations: 4 kB / 0.6661 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.395e-05/0.1822, allocations: 4 kB / 0.6661 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.896e-05/0.1822, allocations: 15.92 kB / 0.6661 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.905e-05/0.1823, allocations: 19.94 kB / 0.6662 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001532/0.1824, allocations: 48.02 kB / 0.6662 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.1825, allocations: 8 kB / 0.6662 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.134e-06/0.1825, allocations: 0 / 0.6662 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.058e-05/0.1825, allocations: 0 / 0.6662 GB, free: 4.16 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006128/0.1831, allocations: 359.3 kB / 0.6666 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.1832, allocations: 13.11 kB / 0.6666 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.565e-05/0.1832, allocations: 34.75 kB / 0.6666 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.545e-05/0.1833, allocations: 8.891 kB / 0.6666 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001674/0.1834, allocations: 168.3 kB / 0.6668 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.34e-05/0.1835, allocations: 8.375 kB / 0.6668 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.162e-05/0.1835, allocations: 8.375 kB / 0.6668 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001311/0.1836, allocations: 57.75 kB / 0.6668 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.1836, allocations: 0 / 0.6668 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.1837, allocations: 4 kB / 0.6668 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.421e-06/0.1837, allocations: 0 / 0.6668 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.195e-05/0.1837, allocations: 27.97 kB / 0.6669 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005624/0.1843, allocations: 304.7 kB / 0.6672 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000122/0.1844, allocations: 54.56 kB / 0.6672 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.092e-05/0.1845, allocations: 28.94 kB / 0.6672 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.347e-06/0.1845, allocations: 0 / 0.6672 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002149/0.1847, allocations: 79.36 kB / 0.6673 GB, free: 2.855 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 2.334e-06/0.1848, allocations: 0 / 0.6673 GB, free: 2.855 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0002687/0.185, allocations: 105.6 kB / 0.6674 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.529e-05/0.1851, allocations: 51.41 kB / 0.6675 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.519e-05/0.1852, allocations: 105.8 kB / 0.6676 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.221e-05/0.1852, allocations: 29.7 kB / 0.6676 GB, free: 2.535 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.63e-05/0.1853, allocations: 92.08 kB / 0.6677 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.412e-05/0.1853, allocations: 23.83 kB / 0.6677 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.116e-05/0.1854, allocations: 25.72 kB / 0.6677 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1855, allocations: 322.8 kB / 0.668 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.216e-05/0.1856, allocations: 19.94 kB / 0.6681 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.945e-05/0.1857, allocations: 51.36 kB / 0.6681 GB, free: 1.98 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001023/0.1858, allocations: 67.55 kB / 0.6682 GB, free: 1.902 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1858, allocations: 0 / 0.6682 GB, free: 1.902 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001701/0.186, allocations: 97.55 kB / 0.6683 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.186, allocations: 10.06 kB / 0.6683 GB, free: 1.793 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.186, allocations: 4 kB / 0.6683 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.186, allocations: 0 / 0.6683 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.985e-05/0.1861, allocations: 11.94 kB / 0.6683 GB, free: 1.777 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.1861, allocations: 7.984 kB / 0.6683 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.664e-05/0.1862, allocations: 11.98 kB / 0.6683 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.799e-06/0.1862, allocations: 3.938 kB / 0.6683 GB, free: 1.754 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,not1.y,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition2,$whenCondition3,offTim1.entryTime,$PRE.offTim1.entryTime,offTim2.entryTime,$PRE.offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.0001004/0.1863, allocations: 117.8 kB / 0.6684 GB, free: 1.629 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.543e-05/0.1864, allocations: 7.953 kB / 0.6684 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.561e-05/0.1864, allocations: 11.97 kB / 0.6684 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.1864, allocations: 0 / 0.6684 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.1864, allocations: 3.938 kB / 0.6685 GB, free: 1.605 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.1864, allocations: 3.984 kB / 0.6685 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004569/0.1869, allocations: 358.8 kB / 0.6688 GB, free: 1.195 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1869, allocations: 96 / 0.6688 GB, free: 1.195 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.185e-05/0.187, allocations: 12 kB / 0.6688 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.187, allocations: 0 / 0.6688 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.187, allocations: 12 kB / 0.6688 GB, free: 1.172 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.187, allocations: 3.938 kB / 0.6688 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.187, allocations: 0 / 0.6688 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001998/0.1872, allocations: 179.4 kB / 0.669 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.785e-05/0.1873, allocations: 81.06 kB / 0.6691 GB, free: 0.8789 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.1873, allocations: 8 kB / 0.6691 GB, free: 0.8711 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.898e-05/0.1874, allocations: 11.92 kB / 0.6691 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.414e-05/0.1874, allocations: 7.984 kB / 0.6691 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/0.1875, allocations: 11.94 kB / 0.6691 GB, free: 0.8398 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.541e-05/0.1875, allocations: 79.28 kB / 0.6692 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1875, allocations: 0 / 0.6692 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002494/0.1878, allocations: 16 kB / 0.6692 GB, free: 0.7461 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (not1.y,$whenCondition3,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,offTim1.entryTime,offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0005157/0.1883, allocations: 0.7084 MB / 0.6699 GB, free: 16 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001763/0.1885, allocations: 63.92 kB / 0.67 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1885, allocations: 0 / 0.67 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 6.333e-05/0.1886, allocations: 24 kB / 0.67 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000297/0.1889, allocations: 20.23 kB / 0.67 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001481/0.1904, allocations: 1.375 MB / 0.6713 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.1906, allocations: 0.6924 MB / 0.672 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.013e-05/0.1907, allocations: 4 kB / 0.672 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.699e-05/0.1907, allocations: 19.42 kB / 0.672 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of SimCode: time 3.2e-07/0.1907, allocations: 0 / 0.672 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02036/0.2111, allocations: 1.739 MB / 0.6737 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.667/7.878, allocations: 11.03 kB / 0.6737 GB, free: 12.01 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Continuous.Examples.OffTimer.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Continuous.Examples.OffTimer.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.Continuous.Examples.OffTimer_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Controls_Continuous_Examples_OffTimer.fmu > IDEAS_dev_IDEAS.Controls.Continuous.Examples.OffTimer.pipe 2>&1)