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/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_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"}) [: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.00393/0.00393, allocations: 179.1 kB / 7.457 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6844/0.6844, allocations: 133.5 MB / 141.4 MB, free: 15.67 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.471/1.471, allocations: 221.3 MB / 395 MB, free: 10.22 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.000955/0.000955, allocations: 101.3 kB / 477.8 MB, free: 10.93 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4607/0.4617, allocations: 88.43 MB / 0.5529 GB, free: 88.93 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1689/0.6306, allocations: 82.3 MB / 0.6333 GB, free: 14.05 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5122/1.143, allocations: 117.1 MB / 0.7477 GB, free: 10.54 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001835/1.143, allocations: 73.41 kB / 0.7477 GB, free: 10.54 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.03362/1.177, allocations: 12.91 MB / 0.7604 GB, free: 23.1 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/1.177, allocations: 8.562 kB / 0.7604 GB, free: 23.1 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001561/1.177, allocations: 88.98 kB / 0.7604 GB, free: 23.05 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007807/1.178, allocations: 0.5259 MB / 0.761 GB, free: 22.71 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.771e-05/1.178, allocations: 26.19 kB / 0.761 GB, free: 22.71 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.992e-05/1.178, allocations: 38.66 kB / 0.761 GB, free: 22.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00084/1.179, allocations: 395.8 kB / 0.7614 GB, free: 22.69 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008978/1.18, allocations: 0.5223 MB / 0.7619 GB, free: 22.51 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.238e-05/1.18, allocations: 3.906 kB / 0.7619 GB, free: 22.5 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.84e-05/1.18, allocations: 1.156 kB / 0.7619 GB, free: 22.5 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.131e-05/1.18, allocations: 18.17 kB / 0.7619 GB, free: 22.5 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003136/1.183, allocations: 1.992 MB / 0.7639 GB, free: 21.51 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005856/1.183, allocations: 306 kB / 0.7642 GB, free: 21.48 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003494/1.184, allocations: 203.5 kB / 0.7644 GB, free: 21.46 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 5.7e-05/1.184, allocations: 13.3 kB / 0.7644 GB, free: 21.46 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003929/1.184, allocations: 225.9 kB / 0.7646 GB, free: 21.38 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=50): time 3.055e-06/1.184, allocations: 1.25 kB / 0.7646 GB, free: 21.38 MB / 0.5105 GB Notification: Performance of matching and sorting (n=50): time 0.0007447/1.185, allocations: 396.1 kB / 0.765 GB, free: 21.29 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.055e-05/1.185, allocations: 161.3 kB / 0.7651 GB, free: 21.1 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004063/1.186, allocations: 348.4 kB / 0.7655 GB, free: 20.96 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.5e-05/1.186, allocations: 26.98 kB / 0.7655 GB, free: 20.93 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001378/1.186, allocations: 255.9 kB / 0.7657 GB, free: 20.74 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 9.688e-05/1.186, allocations: 164.6 kB / 0.7659 GB, free: 20.62 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.272e-05/1.186, allocations: 0 / 0.7659 GB, free: 20.62 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001545/1.186, allocations: 359.7 kB / 0.7662 GB, free: 20.29 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002863/1.186, allocations: 143.2 kB / 0.7664 GB, free: 20.29 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003726/1.187, allocations: 253 kB / 0.7666 GB, free: 20.18 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000312/1.187, allocations: 167.7 kB / 0.7668 GB, free: 20.16 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/1.187, allocations: 0 / 0.7668 GB, free: 20.16 MB / 0.5105 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0007703/1.188, allocations: 468.1 kB / 0.7672 GB, free: 20.05 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/1.188, allocations: 5.062 kB / 0.7672 GB, free: 20.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/1.188, allocations: 2.344 kB / 0.7672 GB, free: 20.05 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/1.188, allocations: 3.969 kB / 0.7672 GB, free: 20.05 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005463/1.188, allocations: 123.1 kB / 0.7673 GB, free: 20.03 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/1.188, allocations: 10.97 kB / 0.7673 GB, free: 20.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004776/1.189, allocations: 71.17 kB / 0.7674 GB, free: 19.99 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.58e-05/1.189, allocations: 22.45 kB / 0.7674 GB, free: 19.99 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.0001409/1.189, allocations: 122.5 kB / 0.7676 GB, free: 19.87 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.687e-05/1.189, allocations: 53.28 kB / 0.7676 GB, free: 19.84 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001396/1.189, allocations: 56.39 kB / 0.7677 GB, free: 19.83 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.796e-06/1.189, allocations: 8.641 kB / 0.7677 GB, free: 19.83 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/1.189, allocations: 0.75 kB / 0.7677 GB, free: 19.83 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/1.189, allocations: 0 / 0.7677 GB, free: 19.83 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001503/1.191, allocations: 1.107 MB / 0.7687 GB, free: 19.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/1.191, allocations: 4 kB / 0.7688 GB, free: 19.35 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005644/1.192, allocations: 112.3 kB / 0.7689 GB, free: 19.33 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/1.192, allocations: 2.562 kB / 0.7689 GB, free: 19.33 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.336e-05/1.192, allocations: 5.312 kB / 0.7689 GB, free: 19.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.277e-06/1.192, allocations: 1.438 kB / 0.7689 GB, free: 19.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/1.192, allocations: 1.312 kB / 0.7689 GB, free: 19.32 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009595/1.193, allocations: 0.7165 MB / 0.7696 GB, free: 19.12 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001331/1.194, allocations: 1.309 MB / 0.7708 GB, free: 18.54 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002243/1.194, allocations: 183.5 kB / 0.771 GB, free: 18.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.09e-05/1.194, allocations: 2.656 kB / 0.771 GB, free: 18.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004395/1.195, allocations: 47.55 kB / 0.7711 GB, free: 18.38 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/1.195, allocations: 35.25 kB / 0.7711 GB, free: 18.37 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.444e-05/1.195, allocations: 14.38 kB / 0.7711 GB, free: 18.37 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0003887/1.195, allocations: 265.4 kB / 0.7714 GB, free: 18.27 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001185/1.196, allocations: 149.8 kB / 0.7715 GB, free: 18.22 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.0002/1.197, allocations: 110.2 kB / 0.7716 GB, free: 18.12 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0008425/1.197, allocations: 413.5 kB / 0.772 GB, free: 18.07 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/1.197, allocations: 1.281 kB / 0.772 GB, free: 18.07 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000379/1.198, allocations: 199.7 kB / 0.7722 GB, free: 18.05 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008614/1.199, allocations: 115.1 kB / 0.7723 GB, free: 18.02 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003885/1.203, allocations: 1.259 MB / 0.7735 GB, free: 17.41 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008729/1.204, allocations: 0.9626 MB / 0.7745 GB, free: 16.59 MB / 0.5105 GB Notification: Performance of SimCode: time 1.283e-06/1.204, allocations: 0 / 0.7745 GB, free: 16.59 MB / 0.5105 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/linux/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)