Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.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.LimPID,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPID,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPID",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.009939/0.009939, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.002008/0.002009, allocations: 197 kB / 16.67 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.482/1.482, 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.8715/0.8715, allocations: 135.1 MB / 425.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 66.55 kB / 0.5851 GB, free: 22.02 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2103/0.2117, allocations: 80.92 MB / 0.6641 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPID): time 0.00554/0.2173, allocations: 3.715 MB / 0.6677 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004261/0.2216, allocations: 1.321 MB / 0.669 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001051/0.2227, allocations: 27.88 kB / 0.6691 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005481/0.2234, allocations: 126.6 kB / 0.6692 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0008347/0.2242, allocations: 186.5 kB / 0.6694 GB, free: 0.9492 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001558/0.2258, allocations: 0.5811 MB / 0.6699 GB, free: 388 kB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001281/0.2271, allocations: 0.9642 MB / 0.6709 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006945/0.2278, allocations: 353.8 kB / 0.6712 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005576/0.2283, allocations: 374.4 kB / 0.6716 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004526/0.2288, allocations: 350.1 kB / 0.6719 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001259/0.2289, allocations: 80 kB / 0.672 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001375/0.2291, allocations: 76 kB / 0.6721 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002076/0.2293, allocations: 187.2 kB / 0.6722 GB, free: 14.01 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.000386/0.2297, allocations: 373.7 kB / 0.6726 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001081/0.2308, allocations: 0.9022 MB / 0.6735 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.2308, allocations: 0 / 0.6735 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.974e-06/0.2308, allocations: 0 / 0.6735 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.199e-05/0.2308, allocations: 0 / 0.6735 GB, free: 12.74 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002251/0.2331, allocations: 1.202 MB / 0.6746 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/0.2331, allocations: 17.11 kB / 0.6747 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001048/0.2333, allocations: 90.7 kB / 0.6747 GB, free: 11.37 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001687/0.2334, allocations: 100.3 kB / 0.6748 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001135/0.2346, allocations: 0.6266 MB / 0.6755 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/0.2347, allocations: 96.97 kB / 0.6755 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.509e-05/0.2348, allocations: 48.38 kB / 0.6756 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001106/0.2359, allocations: 0.6079 MB / 0.6762 GB, free: 9.793 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.098e-05/0.2359, allocations: 7.938 kB / 0.6762 GB, free: 9.785 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.526e-05/0.236, allocations: 27.92 kB / 0.6762 GB, free: 9.758 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.236, allocations: 12 kB / 0.6762 GB, free: 9.746 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009536/0.237, allocations: 419.7 kB / 0.6766 GB, free: 9.336 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00291/0.2399, allocations: 2.103 MB / 0.6787 GB, free: 7.148 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/0.2412, allocations: 0.4922 MB / 0.6792 GB, free: 6.645 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004696/0.2416, allocations: 224.8 kB / 0.6794 GB, free: 6.422 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 4.309e-05/0.2417, allocations: 11.92 kB / 0.6794 GB, free: 6.41 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006542/0.2424, allocations: 286 kB / 0.6797 GB, free: 6.117 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=45): time 2.575e-06/0.2424, allocations: 0 / 0.6797 GB, free: 6.117 MB / 0.5137 GB Notification: Performance of matching and sorting (n=45): time 0.001506/0.2439, allocations: 0.6078 MB / 0.6803 GB, free: 5.504 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.355e-05/0.244, allocations: 92.86 kB / 0.6803 GB, free: 5.395 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007389/0.2447, allocations: 0.6177 MB / 0.6809 GB, free: 4.766 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.869e-05/0.2448, allocations: 37.7 kB / 0.681 GB, free: 4.723 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003032/0.2451, allocations: 353.2 kB / 0.6813 GB, free: 4.375 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001641/0.2453, allocations: 162.6 kB / 0.6815 GB, free: 4.215 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001635/0.2454, allocations: 98.2 kB / 0.6816 GB, free: 4.109 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.2456, allocations: 326 kB / 0.6819 GB, free: 3.785 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004507/0.246, allocations: 187 kB / 0.6821 GB, free: 3.602 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005/0.2465, allocations: 280.2 kB / 0.6823 GB, free: 3.289 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009171/0.2475, allocations: 485.8 kB / 0.6828 GB, free: 2.773 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.2475, allocations: 0 / 0.6828 GB, free: 2.773 MB / 0.5137 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001176/0.2486, allocations: 0.595 MB / 0.6834 GB, free: 2.164 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.464e-05/0.2487, allocations: 37.62 kB / 0.6834 GB, free: 2.121 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.2487, allocations: 4 kB / 0.6834 GB, free: 2.117 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/0.2487, allocations: 4 kB / 0.6834 GB, free: 2.113 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004811/0.2492, allocations: 103.9 kB / 0.6835 GB, free: 2.012 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.682e-05/0.2493, allocations: 11.94 kB / 0.6835 GB, free: 2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003835/0.2496, allocations: 63.59 kB / 0.6836 GB, free: 1.938 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.918e-05/0.2497, allocations: 24.12 kB / 0.6836 GB, free: 1.914 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005616/0.2503, allocations: 305.2 kB / 0.6839 GB, free: 1.613 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004616/0.2507, allocations: 268.2 kB / 0.6842 GB, free: 1.312 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008107/0.2516, allocations: 450 kB / 0.6846 GB, free: 0.832 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.003e-06/0.2516, allocations: 4 kB / 0.6846 GB, free: 0.8281 MB / 0.5137 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.00108/0.2527, allocations: 0.5829 MB / 0.6852 GB, free: 240 kB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.855e-05/0.2527, allocations: 33.7 kB / 0.6852 GB, free: 200 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.2527, allocations: 320 / 0.6852 GB, free: 200 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.645e-06/0.2527, allocations: 11.94 kB / 0.6852 GB, free: 188 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004403/0.2532, allocations: 107.8 kB / 0.6853 GB, free: 80 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.2532, allocations: 7.938 kB / 0.6853 GB, free: 72 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003597/0.2536, allocations: 51.72 kB / 0.6854 GB, free: 20 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.152e-05/0.2536, allocations: 16 kB / 0.6854 GB, free: 4 kB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0002227/0.2538, allocations: 220 kB / 0.6856 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.2539, allocations: 79.53 kB / 0.6857 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001505/0.2541, allocations: 79.22 kB / 0.6857 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.2541, allocations: 4 kB / 0.6857 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.2541, allocations: 0 / 0.6857 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.2541, allocations: 3.984 kB / 0.6857 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007127/0.2549, allocations: 0.6219 MB / 0.6864 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2549, allocations: 0 / 0.6864 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004627/0.2553, allocations: 83.88 kB / 0.6864 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.2553, allocations: 0 / 0.6864 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.143e-05/0.2554, allocations: 16 kB / 0.6864 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.2554, allocations: 0 / 0.6864 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.2554, allocations: 3.938 kB / 0.6864 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001511/0.2569, allocations: 0.7357 MB / 0.6872 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002528/0.2572, allocations: 196.5 kB / 0.6874 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.424e-05/0.2573, allocations: 8.125 kB / 0.6874 GB, free: 13.87 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003958/0.2577, allocations: 39.95 kB / 0.6874 GB, free: 13.83 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.316e-05/0.2578, allocations: 31.95 kB / 0.6874 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.444e-05/0.2578, allocations: 15.98 kB / 0.6874 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0005133/0.2583, allocations: 435.1 kB / 0.6879 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2583, allocations: 0 / 0.6879 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0006137/0.259, allocations: 215.5 kB / 0.6881 GB, free: 13.15 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.001993/0.261, allocations: 1.286 MB / 0.6893 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001616/0.2626, allocations: 0.7894 MB / 0.6901 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2626, allocations: 0 / 0.6901 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0005452/0.2631, allocations: 215.7 kB / 0.6903 GB, free: 10.81 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009069/0.2641, allocations: 213.1 kB / 0.6905 GB, free: 10.61 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008031/0.2721, allocations: 5.378 MB / 0.6958 GB, free: 5.078 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005155/0.2727, allocations: 0.9216 MB / 0.6967 GB, free: 4.129 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0004217/0.2731, allocations: 93.14 kB / 0.6967 GB, free: 4.039 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003806/0.2735, allocations: 259.3 kB / 0.697 GB, free: 3.785 MB / 0.5294 GB Notification: Performance of SimCode: time 9.52e-07/0.2735, allocations: 0 / 0.697 GB, free: 3.785 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03766/0.3112, allocations: 14.03 MB / 0.7107 GB, free: 5.91 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.103/9.415, allocations: 6.562 kB / 0.7107 GB, free: 5.906 MB / 0.545 GB (rm -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID_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_LimPID.fmu > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe 2>&1)