Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.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.LimPIDWithReset,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",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.00789/0.00789, allocations: 100.3 kB / 15.73 MB, free: 6 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.00142/0.00142, allocations: 195.1 kB / 16.67 MB, free: 5.922 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.487/1.487, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8675/0.8675, allocations: 135.1 MB / 425.7 MB, free: 4.059 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 63.41 kB / 0.5851 GB, free: 21.95 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2276/0.2289, allocations: 80.93 MB / 0.6641 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.006186/0.2351, allocations: 4.094 MB / 0.6681 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003315/0.2385, allocations: 1.332 MB / 0.6694 GB, free: 0.875 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001009/0.2395, allocations: 23.88 kB / 0.6694 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006004/0.2402, allocations: 126.8 kB / 0.6696 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0009014/0.2412, allocations: 174.4 kB / 0.6697 GB, free: 0.5547 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001131/0.2423, allocations: 419 kB / 0.6701 GB, free: 152 kB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001154/0.2435, allocations: 0.9632 MB / 0.6711 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006683/0.2441, allocations: 458.1 kB / 0.6715 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004014/0.2446, allocations: 338.8 kB / 0.6718 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003726/0.2449, allocations: 334.3 kB / 0.6721 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001304/0.2451, allocations: 92 kB / 0.6722 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001259/0.2452, allocations: 92 kB / 0.6723 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001896/0.2454, allocations: 183.3 kB / 0.6725 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0003814/0.2458, allocations: 386.1 kB / 0.6729 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0012/0.247, allocations: 1.066 MB / 0.6739 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 1.29e-05/0.247, allocations: 7.938 kB / 0.6739 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.465e-06/0.247, allocations: 0 / 0.6739 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.308e-05/0.2471, allocations: 0 / 0.6739 GB, free: 12.24 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.00225/0.2493, allocations: 1.069 MB / 0.675 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 7.29e-05/0.2494, allocations: 13.11 kB / 0.675 GB, free: 11.1 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001406/0.2496, allocations: 102.6 kB / 0.6751 GB, free: 10.99 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000154/0.2497, allocations: 87.89 kB / 0.6752 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001162/0.2509, allocations: 0.5611 MB / 0.6757 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.992e-05/0.2509, allocations: 45.69 kB / 0.6757 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.2511, allocations: 64.36 kB / 0.6758 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/0.2525, allocations: 0.6077 MB / 0.6764 GB, free: 9.566 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.731e-05/0.2525, allocations: 0 / 0.6764 GB, free: 9.566 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.873e-05/0.2526, allocations: 24 kB / 0.6764 GB, free: 9.543 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.524e-05/0.2526, allocations: 16 kB / 0.6764 GB, free: 9.527 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/0.2538, allocations: 461 kB / 0.6769 GB, free: 9.074 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003696/0.2575, allocations: 1.985 MB / 0.6788 GB, free: 7.016 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001053/0.2586, allocations: 456.4 kB / 0.6793 GB, free: 6.566 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004944/0.2591, allocations: 239.4 kB / 0.6795 GB, free: 6.332 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 5.402e-05/0.2592, allocations: 4.438 kB / 0.6795 GB, free: 6.328 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006718/0.2598, allocations: 265.2 kB / 0.6797 GB, free: 6.055 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=49): time 2.424e-06/0.2599, allocations: 0 / 0.6797 GB, free: 6.055 MB / 0.5137 GB Notification: Performance of matching and sorting (n=49): time 0.001506/0.2614, allocations: 0.5805 MB / 0.6803 GB, free: 5.473 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.925e-05/0.2615, allocations: 63.84 kB / 0.6804 GB, free: 5.395 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006153/0.2621, allocations: 446 kB / 0.6808 GB, free: 4.949 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.001e-05/0.2622, allocations: 33.7 kB / 0.6808 GB, free: 4.91 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003266/0.2625, allocations: 324.9 kB / 0.6811 GB, free: 4.59 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001751/0.2627, allocations: 173.6 kB / 0.6813 GB, free: 4.418 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001818/0.2629, allocations: 94.16 kB / 0.6814 GB, free: 4.32 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002663/0.2631, allocations: 362.8 kB / 0.6817 GB, free: 3.957 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004285/0.2636, allocations: 173 kB / 0.6819 GB, free: 3.789 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005029/0.2641, allocations: 245.8 kB / 0.6821 GB, free: 3.52 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009815/0.2651, allocations: 452 kB / 0.6826 GB, free: 3.047 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-06/0.2651, allocations: 0 / 0.6826 GB, free: 3.047 MB / 0.5137 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001271/0.2664, allocations: 0.5625 MB / 0.6831 GB, free: 2.473 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.975e-05/0.2665, allocations: 37.73 kB / 0.6832 GB, free: 2.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.2665, allocations: 4 kB / 0.6832 GB, free: 2.426 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.354e-05/0.2665, allocations: 4 kB / 0.6832 GB, free: 2.422 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005385/0.2671, allocations: 115.8 kB / 0.6833 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.081e-05/0.2671, allocations: 4 kB / 0.6833 GB, free: 2.305 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003923/0.2675, allocations: 59.5 kB / 0.6833 GB, free: 2.246 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.193e-05/0.2676, allocations: 16 kB / 0.6833 GB, free: 2.23 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * 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.0003749/0.268, allocations: 213.7 kB / 0.6835 GB, free: 2.012 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.202e-05/0.2681, allocations: 59.27 kB / 0.6836 GB, free: 1.953 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001686/0.2682, allocations: 61.59 kB / 0.6837 GB, free: 1.895 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.2683, allocations: 8 kB / 0.6837 GB, free: 1.887 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.498e-05/0.2683, allocations: 0 / 0.6837 GB, free: 1.887 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.401e-05/0.2683, allocations: 7.984 kB / 0.6837 GB, free: 1.879 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002309/0.2706, allocations: 1.186 MB / 0.6848 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.2706, allocations: 0 / 0.6848 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005037/0.2712, allocations: 91.88 kB / 0.6849 GB, free: 0.543 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.281e-05/0.2712, allocations: 4 kB / 0.6849 GB, free: 0.5391 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.303e-05/0.2712, allocations: 8 kB / 0.6849 GB, free: 0.5312 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.2712, allocations: 4 kB / 0.6849 GB, free: 0.5273 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.2712, allocations: 0 / 0.6849 GB, free: 0.5273 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001608/0.2729, allocations: 0.7613 MB / 0.6857 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002939/0.2732, allocations: 172.3 kB / 0.6858 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.886e-05/0.2733, allocations: 12 kB / 0.6859 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003096/0.2736, allocations: 23.97 kB / 0.6859 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001489/0.2737, allocations: 40.39 kB / 0.6859 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.262e-05/0.2738, allocations: 11.98 kB / 0.6859 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0004664/0.2743, allocations: 306.9 kB / 0.6862 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9.22e-07/0.2743, allocations: 0 / 0.6862 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0006273/0.2749, allocations: 147.4 kB / 0.6864 GB, free: 15.03 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002155/0.2771, allocations: 1.319 MB / 0.6877 GB, free: 13.69 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001239/0.2783, allocations: 477.5 kB / 0.6881 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/0.2783, allocations: 7.938 kB / 0.6881 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0005028/0.2789, allocations: 218.3 kB / 0.6883 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009752/0.2798, allocations: 150.3 kB / 0.6885 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01035/0.2902, allocations: 4.78 MB / 0.6931 GB, free: 7.918 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000816/0.2911, allocations: 0.8899 MB / 0.694 GB, free: 7.004 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0004388/0.2916, allocations: 64.58 kB / 0.6941 GB, free: 6.938 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004419/0.292, allocations: 227.3 kB / 0.6943 GB, free: 6.715 MB / 0.5294 GB Notification: Performance of SimCode: time 1.583e-06/0.2921, allocations: 0 / 0.6943 GB, free: 6.715 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04408/0.3361, allocations: 11.49 MB / 0.7055 GB, free: 11.39 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.937/9.273, allocations: 6.688 kB / 0.7055 GB, free: 11.39 MB / 0.545 GB (rm -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset.fmu > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)