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.005271/0.005275, allocations: 100.7 kB / 15.73 MB, free: 6.008 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.001234/0.001234, allocations: 191.9 kB / 16.67 MB, free: 5.949 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.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9119/0.9119, allocations: 135.1 MB / 425.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 71.89 kB / 0.5851 GB, free: 3.91 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3875/0.3886, allocations: 80.91 MB / 0.6641 GB, free: 7.297 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.004199/0.3929, allocations: 4.113 MB / 0.6681 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002026/0.3949, allocations: 1.313 MB / 0.6694 GB, free: 2.953 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000319/0.3953, allocations: 20.56 kB / 0.6694 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003008/0.3956, allocations: 132 kB / 0.6696 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002801/0.3959, allocations: 175.5 kB / 0.6697 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007056/0.3966, allocations: 425.5 kB / 0.6701 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0006962/0.3973, allocations: 0.9585 MB / 0.6711 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000521/0.3978, allocations: 452.4 kB / 0.6715 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002641/0.3981, allocations: 329.5 kB / 0.6718 GB, free: 1.23 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002584/0.3984, allocations: 340.9 kB / 0.6721 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001057/0.3985, allocations: 91 kB / 0.6722 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001133/0.3986, allocations: 90.22 kB / 0.6723 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001026/0.3987, allocations: 175 kB / 0.6725 GB, free: 0.8203 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002542/0.399, allocations: 396.6 kB / 0.6729 GB, free: 0.5195 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007648/0.3997, allocations: 1.059 MB / 0.6739 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 9.037e-06/0.3998, allocations: 3.984 kB / 0.6739 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3998, allocations: 1.062 kB / 0.6739 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.948e-06/0.3998, allocations: 0 / 0.6739 GB, free: 15.68 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.001751/0.4015, allocations: 1.075 MB / 0.675 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.4016, allocations: 13.45 kB / 0.675 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001084/0.4017, allocations: 97.77 kB / 0.6751 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001312/0.4018, allocations: 86.44 kB / 0.6751 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008609/0.4027, allocations: 0.5703 MB / 0.6757 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.67e-05/0.4028, allocations: 44.59 kB / 0.6757 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.901e-05/0.4028, allocations: 55.12 kB / 0.6758 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.4039, allocations: 0.6102 MB / 0.6764 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.368e-05/0.4039, allocations: 5 kB / 0.6764 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.141e-05/0.404, allocations: 29.34 kB / 0.6764 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.404, allocations: 14.25 kB / 0.6764 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009488/0.4049, allocations: 458.7 kB / 0.6769 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002614/0.4076, allocations: 2 MB / 0.6788 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009026/0.4085, allocations: 457.6 kB / 0.6793 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004442/0.4089, allocations: 237.5 kB / 0.6795 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.673e-05/0.409, allocations: 6.281 kB / 0.6795 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005109/0.4095, allocations: 265.2 kB / 0.6797 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=49): time 2.245e-06/0.4095, allocations: 0 / 0.6797 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of matching and sorting (n=49): time 0.001271/0.4108, allocations: 0.58 MB / 0.6803 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.689e-05/0.4108, allocations: 57.59 kB / 0.6804 GB, free: 11.01 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004686/0.4113, allocations: 446.9 kB / 0.6808 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.846e-05/0.4114, allocations: 36.83 kB / 0.6808 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002103/0.4116, allocations: 325.1 kB / 0.6811 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.4117, allocations: 161.5 kB / 0.6813 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001367/0.4118, allocations: 98.08 kB / 0.6814 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.412, allocations: 363.5 kB / 0.6817 GB, free: 9.848 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003922/0.4124, allocations: 175.6 kB / 0.6819 GB, free: 9.758 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000421/0.4128, allocations: 245.7 kB / 0.6821 GB, free: 9.59 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007909/0.4136, allocations: 457.1 kB / 0.6826 GB, free: 9.297 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.4136, allocations: 0 / 0.6826 GB, free: 9.297 MB / 0.5137 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001022/0.4147, allocations: 0.5632 MB / 0.6831 GB, free: 8.988 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.4147, allocations: 32.48 kB / 0.6832 GB, free: 8.957 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.4147, allocations: 6.438 kB / 0.6832 GB, free: 8.953 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.4147, allocations: 3.438 kB / 0.6832 GB, free: 8.953 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004722/0.4152, allocations: 115.2 kB / 0.6833 GB, free: 8.926 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.4152, allocations: 3.844 kB / 0.6833 GB, free: 8.926 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003244/0.4156, allocations: 57.47 kB / 0.6833 GB, free: 8.887 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.012e-05/0.4156, allocations: 18.47 kB / 0.6833 GB, free: 8.883 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.0002395/0.4159, allocations: 212.2 kB / 0.6835 GB, free: 8.703 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.465e-05/0.4159, allocations: 57.06 kB / 0.6836 GB, free: 8.672 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001322/0.4161, allocations: 66.2 kB / 0.6837 GB, free: 8.621 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.4161, allocations: 4.812 kB / 0.6837 GB, free: 8.621 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.4161, allocations: 1.094 kB / 0.6837 GB, free: 8.621 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.4161, allocations: 3.984 kB / 0.6837 GB, free: 8.617 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001682/0.4178, allocations: 1.182 MB / 0.6848 GB, free: 7.746 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.4178, allocations: 0 / 0.6848 GB, free: 7.746 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004434/0.4183, allocations: 92.7 kB / 0.6849 GB, free: 7.727 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.4183, allocations: 1.156 kB / 0.6849 GB, free: 7.727 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.259e-05/0.4183, allocations: 19.17 kB / 0.6849 GB, free: 7.711 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.4183, allocations: 2.438 kB / 0.6849 GB, free: 7.711 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4183, allocations: 0 / 0.6849 GB, free: 7.711 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001265/0.4196, allocations: 0.7595 MB / 0.6857 GB, free: 7.258 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001713/0.4198, allocations: 171.1 kB / 0.6858 GB, free: 7.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.922e-05/0.4199, allocations: 8.188 kB / 0.6859 GB, free: 7.086 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002749/0.4201, allocations: 33.5 kB / 0.6859 GB, free: 7.062 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.4203, allocations: 37.5 kB / 0.6859 GB, free: 7.043 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.682e-05/0.4203, allocations: 16.16 kB / 0.6859 GB, free: 7.035 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003274/0.4206, allocations: 311.3 kB / 0.6862 GB, free: 6.844 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4206, allocations: 0 / 0.6862 GB, free: 6.844 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004523/0.4211, allocations: 145.8 kB / 0.6864 GB, free: 6.801 MB / 0.5137 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.00154/0.4226, allocations: 1.311 MB / 0.6877 GB, free: 5.809 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0008717/0.4235, allocations: 493.2 kB / 0.6881 GB, free: 5.547 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.4235, allocations: 0 / 0.6881 GB, free: 5.547 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003932/0.4239, allocations: 215.5 kB / 0.6883 GB, free: 5.457 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007478/0.4247, allocations: 148 kB / 0.6885 GB, free: 5.383 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006828/0.4315, allocations: 4.778 MB / 0.6931 GB, free: 2.168 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005254/0.4321, allocations: 0.8899 MB / 0.694 GB, free: 1.387 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003505/0.4324, allocations: 60.41 kB / 0.6941 GB, free: 1.355 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003215/0.4328, allocations: 222.1 kB / 0.6943 GB, free: 1.168 MB / 0.5137 GB Notification: Performance of SimCode: time 1.202e-06/0.4328, allocations: 0 / 0.6943 GB, free: 1.168 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.222/1.654, allocations: 11.31 MB / 0.7053 GB, free: 6.93 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.95/16.6, allocations: 9.641 kB / 0.7053 GB, free: 6.926 MB / 0.5294 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)