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.001211/0.001211, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001597/0.001597, allocations: 189 kB / 16.25 MB, free: 6.152 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.39/1.39, allocations: 222.9 MB / 239.9 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9743/0.9743, allocations: 135.1 MB / 425.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.0014, allocations: 60.58 kB / 0.505 GB, free: 5.551 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1609/0.1623, allocations: 80.93 MB / 0.584 GB, free: 4.789 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.005088/0.1674, allocations: 4.105 MB / 0.588 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00247/0.1699, allocations: 1.27 MB / 0.5892 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000708/0.1706, allocations: 23.88 kB / 0.5893 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000469/0.1711, allocations: 95.2 kB / 0.5893 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000553/0.1717, allocations: 150.8 kB / 0.5895 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009123/0.1726, allocations: 386.7 kB / 0.5899 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001035/0.1737, allocations: 0.9593 MB / 0.5908 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006214/0.1743, allocations: 462 kB / 0.5912 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004054/0.1747, allocations: 326.8 kB / 0.5915 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003798/0.1751, allocations: 338.3 kB / 0.5919 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001329/0.1753, allocations: 92 kB / 0.592 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001256/0.1754, allocations: 92 kB / 0.592 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001273/0.1755, allocations: 175.5 kB / 0.5922 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003294/0.1759, allocations: 390 kB / 0.5926 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007912/0.1767, allocations: 1.036 MB / 0.5936 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1767, allocations: 8 kB / 0.5936 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.092e-06/0.1767, allocations: 0 / 0.5936 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.909e-05/0.1767, allocations: 0 / 0.5936 GB, free: 10.87 MB / 0.4981 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.001948/0.1787, allocations: 1.077 MB / 0.5947 GB, free: 9.73 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.1787, allocations: 12.03 kB / 0.5947 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001212/0.1788, allocations: 98.69 kB / 0.5948 GB, free: 9.613 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.179, allocations: 88 kB / 0.5948 GB, free: 9.527 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007558/0.1798, allocations: 0.5495 MB / 0.5954 GB, free: 8.945 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.531e-05/0.1798, allocations: 45.69 kB / 0.5954 GB, free: 8.902 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.738e-05/0.1799, allocations: 68.22 kB / 0.5955 GB, free: 8.836 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001022/0.1809, allocations: 0.6077 MB / 0.5961 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.1809, allocations: 0 / 0.5961 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.938e-05/0.181, allocations: 20 kB / 0.5961 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/0.181, allocations: 16 kB / 0.5961 GB, free: 8.168 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00088/0.1819, allocations: 457 kB / 0.5966 GB, free: 7.723 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002425/0.1843, allocations: 2.016 MB / 0.5985 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008236/0.1852, allocations: 446.2 kB / 0.599 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000404/0.1856, allocations: 241.8 kB / 0.5992 GB, free: 4.953 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.812e-05/0.1856, allocations: 4.438 kB / 0.5992 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005294/0.1862, allocations: 269.2 kB / 0.5994 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 1.854e-06/0.1862, allocations: 0 / 0.5994 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001149/0.1873, allocations: 0.5805 MB / 0.6 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.945e-05/0.1874, allocations: 59.84 kB / 0.6001 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004096/0.1878, allocations: 446 kB / 0.6005 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.919e-05/0.1879, allocations: 37.69 kB / 0.6005 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001938/0.1881, allocations: 328.3 kB / 0.6008 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.1882, allocations: 161.6 kB / 0.601 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.1883, allocations: 94.25 kB / 0.6011 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001169/0.1884, allocations: 362.8 kB / 0.6014 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000354/0.1888, allocations: 169 kB / 0.6016 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003843/0.1892, allocations: 261.7 kB / 0.6018 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007599/0.1899, allocations: 448 kB / 0.6023 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.19, allocations: 3.938 kB / 0.6023 GB, free: 1.66 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009674/0.1909, allocations: 0.5701 MB / 0.6028 GB, free: 1.078 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.477e-05/0.191, allocations: 33.7 kB / 0.6029 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.191, allocations: 0 / 0.6029 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.191, allocations: 4 kB / 0.6029 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004676/0.1915, allocations: 115.8 kB / 0.603 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.1915, allocations: 4.25 kB / 0.603 GB, free: 0.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003267/0.1918, allocations: 71.5 kB / 0.603 GB, free: 0.8477 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.961e-05/0.1919, allocations: 19.98 kB / 0.6031 GB, free: 0.8281 MB / 0.4981 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.0002109/0.1921, allocations: 205.7 kB / 0.6033 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.292e-05/0.1922, allocations: 59.28 kB / 0.6033 GB, free: 0.5586 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001188/0.1923, allocations: 65.58 kB / 0.6034 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.1923, allocations: 4 kB / 0.6034 GB, free: 0.4922 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1923, allocations: 4 kB / 0.6034 GB, free: 500 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.1923, allocations: 0 / 0.6034 GB, free: 500 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2543/0.4466, allocations: 1.172 MB / 0.6045 GB, free: 51.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.9e-06/0.4466, allocations: 2.625 kB / 0.6045 GB, free: 51.91 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004332/0.4471, allocations: 98.12 kB / 0.6046 GB, free: 51.91 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.4471, allocations: 1.406 kB / 0.6046 GB, free: 51.91 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.934e-05/0.4471, allocations: 11.06 kB / 0.6046 GB, free: 51.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.4471, allocations: 2.562 kB / 0.6046 GB, free: 51.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.4471, allocations: 0 / 0.6046 GB, free: 51.91 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.4482, allocations: 0.7625 MB / 0.6054 GB, free: 51.77 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001517/0.4484, allocations: 168.2 kB / 0.6055 GB, free: 51.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.94e-05/0.4485, allocations: 9.75 kB / 0.6056 GB, free: 51.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000284/0.4487, allocations: 32.52 kB / 0.6056 GB, free: 51.67 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.412e-05/0.4488, allocations: 34.62 kB / 0.6056 GB, free: 51.67 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.527e-05/0.4489, allocations: 14.91 kB / 0.6056 GB, free: 51.67 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002693/0.4492, allocations: 313.8 kB / 0.6059 GB, free: 51.59 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4492, allocations: 0 / 0.6059 GB, free: 51.59 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004221/0.4496, allocations: 144.4 kB / 0.6061 GB, free: 51.59 MB / 0.4981 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.001211/0.4508, allocations: 1.314 MB / 0.6074 GB, free: 50.84 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009185/0.4517, allocations: 0.4885 MB / 0.6078 GB, free: 50.64 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4517, allocations: 4.594 kB / 0.6078 GB, free: 50.64 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003362/0.4521, allocations: 222.4 kB / 0.6081 GB, free: 50.58 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006932/0.4528, allocations: 154.9 kB / 0.6082 GB, free: 50.54 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005944/0.4587, allocations: 5.133 MB / 0.6132 GB, free: 47.45 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002527/0.459, allocations: 0.8863 MB / 0.6141 GB, free: 46.75 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000276/0.4593, allocations: 63.59 kB / 0.6141 GB, free: 46.73 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002361/0.4595, allocations: 220.7 kB / 0.6143 GB, free: 46.56 MB / 0.4981 GB Notification: Performance of SimCode: time 5.61e-07/0.4596, allocations: 2.844 kB / 0.6144 GB, free: 46.56 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1523/0.6119, allocations: 10.93 MB / 0.625 GB, free: 45.77 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001712/0.6121, allocations: 199 kB / 0.6252 GB, free: 45.52 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.155/2.768, allocations: 0 / 0.6252 GB, free: 45.52 MB / 0.4981 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)