Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.Controls.Continuous.Examples.OffTimer,fileNamePrefix="IDEAS_IDEAS_Controls_Continuous_Examples_OffTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.OffTimer,fileNamePrefix="IDEAS_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.005299/0.005299, allocations: 96.7 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.001248/0.001249, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.274/1.274, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7074/0.7074, allocations: 132.2 MB / 422.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 66.81 kB / 0.5808 GB, free: 1.285 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1776/0.1789, allocations: 80.2 MB / 0.6592 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.OffTimer): time 0.00251/0.1815, allocations: 1.454 MB / 0.6606 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007185/0.1823, allocations: 446.9 kB / 0.661 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.842e-05/0.1823, allocations: 8 kB / 0.661 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.262e-05/0.1824, allocations: 3.938 kB / 0.661 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 9.161e-05/0.1825, allocations: 7.875 kB / 0.661 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001747/0.1826, allocations: 23.97 kB / 0.661 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001001/0.1828, allocations: 47.86 kB / 0.6611 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.1829, allocations: 19.97 kB / 0.6611 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.945e-05/0.183, allocations: 23.92 kB / 0.6611 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.267e-05/0.183, allocations: 15.92 kB / 0.6611 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.539e-05/0.1831, allocations: 8 kB / 0.6612 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.399e-05/0.1831, allocations: 4 kB / 0.6612 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.182e-05/0.1831, allocations: 15.92 kB / 0.6612 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.458e-05/0.1832, allocations: 19.92 kB / 0.6612 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001119/0.1833, allocations: 48.03 kB / 0.6612 GB, free: 12 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1833, allocations: 7.938 kB / 0.6612 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.683e-06/0.1833, allocations: 0 / 0.6612 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.409e-06/0.1833, allocations: 0 / 0.6612 GB, free: 11.99 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.0005459/0.1839, allocations: 359.4 kB / 0.6616 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.1839, allocations: 12.03 kB / 0.6616 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.027e-05/0.184, allocations: 34.75 kB / 0.6616 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.936e-05/0.184, allocations: 8.828 kB / 0.6616 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001347/0.1841, allocations: 176.3 kB / 0.6618 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.1842, allocations: 4.375 kB / 0.6618 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.1842, allocations: 4.375 kB / 0.6618 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001203/0.1843, allocations: 65.73 kB / 0.6619 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.1843, allocations: 0 / 0.6619 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.1843, allocations: 4 kB / 0.6619 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.1843, allocations: 0 / 0.6619 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.38e-05/0.1844, allocations: 27.98 kB / 0.6619 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004752/0.1849, allocations: 304.7 kB / 0.6622 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001093/0.185, allocations: 50.56 kB / 0.6622 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.057e-05/0.1851, allocations: 28.94 kB / 0.6623 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.117e-05/0.1851, allocations: 4 kB / 0.6623 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001729/0.1853, allocations: 75.41 kB / 0.6624 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.743e-06/0.1853, allocations: 0 / 0.6624 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0002163/0.1855, allocations: 97.58 kB / 0.6624 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.375e-05/0.1856, allocations: 59.39 kB / 0.6625 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.241e-05/0.1857, allocations: 101.9 kB / 0.6626 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.822e-05/0.1857, allocations: 33.64 kB / 0.6626 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.475e-05/0.1857, allocations: 100.1 kB / 0.6627 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.395e-05/0.1858, allocations: 19.84 kB / 0.6627 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.968e-05/0.1858, allocations: 25.7 kB / 0.6628 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.996e-05/0.1859, allocations: 323.2 kB / 0.6631 GB, free: 9.883 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.609e-05/0.186, allocations: 15.98 kB / 0.6631 GB, free: 9.867 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.715e-05/0.186, allocations: 45.5 kB / 0.6631 GB, free: 9.812 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.742e-05/0.1861, allocations: 67.38 kB / 0.6632 GB, free: 9.734 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.1861, allocations: 3.938 kB / 0.6632 GB, free: 9.73 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001329/0.1863, allocations: 97.56 kB / 0.6633 GB, free: 9.629 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.1863, allocations: 4 kB / 0.6633 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/0.1863, allocations: 0 / 0.6633 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.1863, allocations: 8.219 kB / 0.6633 GB, free: 9.617 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.835e-05/0.1864, allocations: 12 kB / 0.6633 GB, free: 9.605 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/0.1864, allocations: 3.984 kB / 0.6633 GB, free: 9.602 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.501e-05/0.1865, allocations: 11.98 kB / 0.6633 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.288e-06/0.1865, allocations: 7.938 kB / 0.6633 GB, free: 9.582 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 9.429e-05/0.1866, allocations: 118.5 kB / 0.6635 GB, free: 9.457 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.31e-05/0.1866, allocations: 11.94 kB / 0.6635 GB, free: 9.445 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.497e-05/0.1867, allocations: 7.953 kB / 0.6635 GB, free: 9.43 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1867, allocations: 0 / 0.6635 GB, free: 9.43 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1867, allocations: 0 / 0.6635 GB, free: 9.43 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.1867, allocations: 4 kB / 0.6635 GB, free: 9.426 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003895/0.1871, allocations: 362.4 kB / 0.6638 GB, free: 9.016 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1871, allocations: 0 / 0.6638 GB, free: 9.016 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.679e-05/0.1871, allocations: 8.062 kB / 0.6638 GB, free: 9.008 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.1871, allocations: 0 / 0.6638 GB, free: 9.008 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.1871, allocations: 0 / 0.6638 GB, free: 9.008 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.1872, allocations: 7.922 kB / 0.6638 GB, free: 9 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1872, allocations: 3.938 kB / 0.6638 GB, free: 8.996 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000149/0.1873, allocations: 183.4 kB / 0.664 GB, free: 8.801 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.061e-05/0.1874, allocations: 89.05 kB / 0.6641 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/0.1874, allocations: 0 / 0.6641 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.562e-05/0.1875, allocations: 7.938 kB / 0.6641 GB, free: 8.688 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.149e-05/0.1875, allocations: 11.98 kB / 0.6641 GB, free: 8.676 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.652e-06/0.1875, allocations: 4 kB / 0.6641 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.419e-05/0.1876, allocations: 87.45 kB / 0.6642 GB, free: 8.586 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1876, allocations: 0 / 0.6642 GB, free: 8.586 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002276/0.1878, allocations: 15.94 kB / 0.6642 GB, free: 8.57 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.0004299/0.1883, allocations: 0.7124 MB / 0.6649 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001434/0.1884, allocations: 55.86 kB / 0.665 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1884, allocations: 0 / 0.665 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 5.124e-05/0.1885, allocations: 31.97 kB / 0.665 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002811/0.1888, allocations: 13.95 kB / 0.665 GB, free: 7.734 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001238/0.19, allocations: 1.378 MB / 0.6664 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002542/0.1903, allocations: 0.6932 MB / 0.667 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.051e-05/0.1903, allocations: 11.98 kB / 0.6671 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.907e-05/0.1904, allocations: 19.44 kB / 0.6671 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of SimCode: time 3.1e-07/0.1904, allocations: 0 / 0.6671 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01808/0.2085, allocations: 1.748 MB / 0.6688 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.242/7.451, allocations: 6.047 kB / 0.6688 GB, free: 3.863 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo IDEAS_IDEAS.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Continuous.Examples.OffTimer.pipe >> ../files/IDEAS_IDEAS.Controls.Continuous.Examples.OffTimer.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Controls_Continuous_Examples_OffTimer.fmu > IDEAS_IDEAS.Controls.Continuous.Examples.OffTimer.pipe 2>&1)