Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.conf.json 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/IDEAS 3.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003707/0.003706, allocations: 180.8 kB / 7.457 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7256/0.7256, allocations: 133.5 MB / 141.4 MB, free: 15.73 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.501/1.501, allocations: 221.3 MB / 395 MB, free: 10.24 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 94.53 kB / 477.8 MB, free: 10.89 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4842/0.4854, allocations: 88.42 MB / 0.5529 GB, free: 88.97 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.198/0.6834, allocations: 82.3 MB / 0.6333 GB, free: 14.05 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5735/1.257, allocations: 117.1 MB / 0.7477 GB, free: 10.95 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/1.257, allocations: 76.31 kB / 0.7478 GB, free: 10.95 MB / 0.4948 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.035/1.292, allocations: 12.9 MB / 0.7604 GB, free: 23.52 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/1.292, allocations: 8.344 kB / 0.7604 GB, free: 23.52 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001669/1.292, allocations: 85.09 kB / 0.7604 GB, free: 23.47 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008135/1.293, allocations: 0.5303 MB / 0.761 GB, free: 23.13 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.014e-05/1.293, allocations: 22.97 kB / 0.761 GB, free: 23.12 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.4e-05/1.293, allocations: 33.78 kB / 0.761 GB, free: 23.12 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000856/1.294, allocations: 394.5 kB / 0.7614 GB, free: 23.11 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/1.295, allocations: 0.521 MB / 0.7619 GB, free: 22.93 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.674e-05/1.295, allocations: 5.094 kB / 0.7619 GB, free: 22.93 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.721e-05/1.295, allocations: 0 / 0.7619 GB, free: 22.93 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.354e-05/1.295, allocations: 14.56 kB / 0.7619 GB, free: 22.93 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003418/1.299, allocations: 1.999 MB / 0.7639 GB, free: 21.93 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006703/1.3, allocations: 302.7 kB / 0.7642 GB, free: 21.9 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000395/1.3, allocations: 209.7 kB / 0.7644 GB, free: 21.88 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 4.842e-05/1.3, allocations: 5.375 kB / 0.7644 GB, free: 21.88 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003666/1.3, allocations: 233.3 kB / 0.7646 GB, free: 21.79 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=50): time 2.495e-06/1.3, allocations: 0 / 0.7646 GB, free: 21.79 MB / 0.5105 GB Notification: Performance of matching and sorting (n=50): time 0.0006941/1.301, allocations: 398 kB / 0.765 GB, free: 21.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.94e-05/1.301, allocations: 160.5 kB / 0.7651 GB, free: 21.51 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004501/1.302, allocations: 348.4 kB / 0.7655 GB, free: 21.38 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.012e-05/1.302, allocations: 27.17 kB / 0.7655 GB, free: 21.35 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000146/1.302, allocations: 254.8 kB / 0.7657 GB, free: 21.16 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/1.302, allocations: 169.4 kB / 0.7659 GB, free: 21.03 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.301e-05/1.302, allocations: 0.8125 kB / 0.7659 GB, free: 21.03 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001714/1.302, allocations: 360.1 kB / 0.7662 GB, free: 20.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002557/1.303, allocations: 143.9 kB / 0.7664 GB, free: 20.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003197/1.303, allocations: 248.4 kB / 0.7666 GB, free: 20.59 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002752/1.303, allocations: 167.9 kB / 0.7668 GB, free: 20.57 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/1.303, allocations: 1.25 kB / 0.7668 GB, free: 20.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.000714/1.304, allocations: 471.4 kB / 0.7672 GB, free: 20.47 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/1.304, allocations: 5.25 kB / 0.7672 GB, free: 20.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/1.304, allocations: 1.844 kB / 0.7672 GB, free: 20.47 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/1.304, allocations: 3.719 kB / 0.7672 GB, free: 20.47 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005362/1.304, allocations: 123.4 kB / 0.7673 GB, free: 20.45 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/1.304, allocations: 11.44 kB / 0.7673 GB, free: 20.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004403/1.305, allocations: 70.55 kB / 0.7674 GB, free: 20.41 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.331e-05/1.305, allocations: 15.5 kB / 0.7674 GB, free: 20.41 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.conPID.trigger,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001497/1.305, allocations: 126.5 kB / 0.7676 GB, free: 20.29 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.303e-05/1.305, allocations: 54.44 kB / 0.7676 GB, free: 20.26 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000127/1.305, allocations: 55.64 kB / 0.7677 GB, free: 20.25 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.369e-05/1.305, allocations: 5.125 kB / 0.7677 GB, free: 20.25 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.458e-05/1.305, allocations: 0 / 0.7677 GB, free: 20.25 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/1.305, allocations: 3.984 kB / 0.7677 GB, free: 20.24 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001577/1.307, allocations: 1.1 MB / 0.7687 GB, free: 19.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/1.307, allocations: 9.016 kB / 0.7687 GB, free: 19.77 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005676/1.308, allocations: 107.5 kB / 0.7689 GB, free: 19.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/1.308, allocations: 1.094 kB / 0.7689 GB, free: 19.75 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.515e-05/1.308, allocations: 5.688 kB / 0.7689 GB, free: 19.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/1.308, allocations: 6.25 kB / 0.7689 GB, free: 19.74 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/1.308, allocations: 0 / 0.7689 GB, free: 19.74 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001045/1.309, allocations: 0.7156 MB / 0.7696 GB, free: 19.54 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001445/1.31, allocations: 1.3 MB / 0.7708 GB, free: 18.96 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002367/1.31, allocations: 182.3 kB / 0.771 GB, free: 18.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.424e-05/1.311, allocations: 5.25 kB / 0.771 GB, free: 18.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004136/1.311, allocations: 47.23 kB / 0.7711 GB, free: 18.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.801e-05/1.311, allocations: 44.66 kB / 0.7711 GB, free: 18.78 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-05/1.311, allocations: 13.16 kB / 0.7711 GB, free: 18.78 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0003282/1.311, allocations: 270 kB / 0.7714 GB, free: 18.68 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001113/1.313, allocations: 141.9 kB / 0.7715 GB, free: 18.64 MB / 0.5105 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.conPID.trigger,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001754/1.313, allocations: 110.6 kB / 0.7716 GB, free: 18.54 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0007232/1.313, allocations: 407.7 kB / 0.772 GB, free: 18.49 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/1.314, allocations: 1.375 kB / 0.772 GB, free: 18.49 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0003087/1.314, allocations: 204.5 kB / 0.7722 GB, free: 18.47 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007324/1.315, allocations: 115.1 kB / 0.7723 GB, free: 18.44 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003593/1.318, allocations: 1.267 MB / 0.7735 GB, free: 17.82 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009539/1.319, allocations: 0.9603 MB / 0.7745 GB, free: 17.01 MB / 0.5105 GB Notification: Performance of SimCode: time 5.71e-07/1.319, allocations: 0.5938 kB / 0.7745 GB, free: 17.01 MB / 0.5105 GB (rm -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset.fmu > IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)