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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 174.5 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8133/0.8133, allocations: 133.6 MB / 141.6 MB, free: 2.871 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.513/1.513, allocations: 221.5 MB / 395.4 MB, free: 10.82 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009563/0.0009563, allocations: 95.05 kB / 478.2 MB, free: 1.32 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.934e-05/1.928e-05, allocations: 0 / 0.5535 GB, free: 8.969 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5694/0.5694, allocations: 82.3 MB / 0.6339 GB, free: 40.77 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1553/0.7248, allocations: 117.2 MB / 0.7484 GB, free: 5.445 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002092/0.725, allocations: 79.89 kB / 0.7484 GB, free: 5.367 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.03161/0.7567, allocations: 12.25 MB / 0.7604 GB, free: 9.09 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.312e-06/0.7567, allocations: 0 / 0.7604 GB, free: 9.09 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 4.81e-05/0.7568, allocations: 16 kB / 0.7604 GB, free: 9.074 MB / 0.5417 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.001578/0.7584, allocations: 0.8724 MB / 0.7613 GB, free: 8.152 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.7584, allocations: 11.97 kB / 0.7613 GB, free: 8.141 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001584/0.7586, allocations: 87.02 kB / 0.7614 GB, free: 8.055 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007963/0.7594, allocations: 0.535 MB / 0.7619 GB, free: 7.473 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.725e-05/0.7594, allocations: 16 kB / 0.7619 GB, free: 7.457 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.509e-05/0.7595, allocations: 36 kB / 0.7619 GB, free: 7.422 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007921/0.7603, allocations: 390.6 kB / 0.7623 GB, free: 7.043 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009195/0.7612, allocations: 0.5208 MB / 0.7628 GB, free: 6.492 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.204e-05/0.7613, allocations: 3.906 kB / 0.7628 GB, free: 6.488 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.757e-05/0.7613, allocations: 7.953 kB / 0.7628 GB, free: 6.48 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.732e-05/0.7613, allocations: 15.98 kB / 0.7629 GB, free: 6.465 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002945/0.7643, allocations: 1.98 MB / 0.7648 GB, free: 4.43 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006743/0.765, allocations: 403.5 kB / 0.7652 GB, free: 4.027 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003084/0.7653, allocations: 212.7 kB / 0.7654 GB, free: 3.816 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 4.609e-05/0.7654, allocations: 8.438 kB / 0.7654 GB, free: 3.809 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000425/0.7658, allocations: 240.5 kB / 0.7656 GB, free: 3.562 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=50): time 2.605e-06/0.7658, allocations: 0 / 0.7656 GB, free: 3.562 MB / 0.5417 GB Notification: Performance of matching and sorting (n=50): time 0.0006889/0.7665, allocations: 400.1 kB / 0.766 GB, free: 3.164 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.094e-05/0.7666, allocations: 162.6 kB / 0.7662 GB, free: 2.969 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003981/0.767, allocations: 349.2 kB / 0.7665 GB, free: 2.621 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.27e-05/0.767, allocations: 25.7 kB / 0.7665 GB, free: 2.59 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002536/0.7673, allocations: 316.3 kB / 0.7668 GB, free: 2.277 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.7674, allocations: 165.6 kB / 0.767 GB, free: 2.113 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.217e-05/0.7675, allocations: 0 / 0.767 GB, free: 2.113 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000162/0.7676, allocations: 366.8 kB / 0.7673 GB, free: 1.746 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00025/0.7679, allocations: 145.1 kB / 0.7675 GB, free: 1.605 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003572/0.7683, allocations: 242.5 kB / 0.7677 GB, free: 1.332 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002805/0.7686, allocations: 170.1 kB / 0.7678 GB, free: 1.168 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.7686, allocations: 4 kB / 0.7679 GB, free: 1.164 MB / 0.5417 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0007453/0.7693, allocations: 470.3 kB / 0.7683 GB, free: 0.6992 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 4.329e-05/0.7694, allocations: 38.62 kB / 0.7683 GB, free: 0.6562 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.7694, allocations: 11.98 kB / 0.7683 GB, free: 0.6445 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.7694, allocations: 4 kB / 0.7684 GB, free: 0.6406 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005102/0.7699, allocations: 119.9 kB / 0.7685 GB, free: 0.5234 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.77, allocations: 7.938 kB / 0.7685 GB, free: 0.5156 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004282/0.7704, allocations: 71.55 kB / 0.7685 GB, free: 456 kB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.965e-05/0.7704, allocations: 16 kB / 0.7686 GB, free: 440 kB / 0.5417 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.0001332/0.7706, allocations: 112.9 kB / 0.7687 GB, free: 320 kB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000637/0.7712, allocations: 399.5 kB / 0.769 GB, free: 15.92 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.283e-05/0.7713, allocations: 59.34 kB / 0.7691 GB, free: 15.86 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001585/0.7715, allocations: 65.17 kB / 0.7692 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.7715, allocations: 8 kB / 0.7692 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.7715, allocations: 0 / 0.7692 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.7715, allocations: 3.984 kB / 0.7692 GB, free: 15.78 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001535/0.773, allocations: 1.104 MB / 0.7703 GB, free: 14.63 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.7731, allocations: 0 / 0.7703 GB, free: 14.63 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005172/0.7736, allocations: 111.9 kB / 0.7704 GB, free: 14.52 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.133e-06/0.7736, allocations: 4 kB / 0.7704 GB, free: 14.52 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.011e-05/0.7736, allocations: 3.984 kB / 0.7704 GB, free: 14.52 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.7736, allocations: 4 kB / 0.7704 GB, free: 14.51 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.7737, allocations: 0 / 0.7704 GB, free: 14.51 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009762/0.7746, allocations: 0.7095 MB / 0.7711 GB, free: 13.78 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002113/0.7749, allocations: 188.3 kB / 0.7712 GB, free: 13.58 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.823e-05/0.7749, allocations: 4 kB / 0.7713 GB, free: 13.57 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003712/0.7753, allocations: 39.95 kB / 0.7713 GB, free: 13.54 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.7754, allocations: 32.39 kB / 0.7713 GB, free: 13.5 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.19e-05/0.7755, allocations: 19.98 kB / 0.7713 GB, free: 13.48 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0002986/0.7758, allocations: 274.9 kB / 0.7716 GB, free: 13.22 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7758, allocations: 4 kB / 0.7716 GB, free: 13.21 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0004872/0.7763, allocations: 135.5 kB / 0.7717 GB, free: 13.08 MB / 0.5573 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.001335/0.7776, allocations: 1.27 MB / 0.773 GB, free: 11.78 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0006989/0.7783, allocations: 443.2 kB / 0.7734 GB, free: 11.34 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.7783, allocations: 0 / 0.7734 GB, free: 11.34 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002896/0.7786, allocations: 193.6 kB / 0.7736 GB, free: 11.15 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006964/0.7793, allocations: 126 kB / 0.7737 GB, free: 11.03 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003078/0.7824, allocations: 1.338 MB / 0.775 GB, free: 9.648 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000455/0.7829, allocations: 0.9018 MB / 0.7759 GB, free: 8.719 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0003023/0.7832, allocations: 56.36 kB / 0.7759 GB, free: 8.66 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003106/0.7835, allocations: 223.3 kB / 0.7762 GB, free: 8.441 MB / 0.5573 GB Notification: Performance of SimCode: time 5.31e-07/0.7835, allocations: 0 / 0.7762 GB, free: 8.441 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03112/0.8147, allocations: 10.34 MB / 0.7863 GB, free: 14.19 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001751/0.8149, allocations: 145.4 kB / 0.7864 GB, free: 13.99 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.227/3.042, allocations: 0 / 0.7864 GB, free: 13.99 MB / 0.573 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)