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.0008581/0.0008583, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0008962/0.0008965, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.588/1.588, allocations: 223.3 MB / 240 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.116/1.116, allocations: 135.3 MB / 426.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005234/0.0005236, allocations: 11.94 kB / 0.5071 GB, free: 5.156 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.201, allocations: 82.3 MB / 0.5875 GB, free: 3.023 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.003981/0.205, allocations: 3.497 MB / 0.5909 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002504/0.2076, allocations: 1.239 MB / 0.5921 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003685/0.208, allocations: 19.94 kB / 0.5921 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002625/0.2082, allocations: 91.2 kB / 0.5922 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003049/0.2086, allocations: 134.8 kB / 0.5923 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007587/0.2093, allocations: 291.1 kB / 0.5926 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0007903/0.2101, allocations: 0.8344 MB / 0.5934 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004417/0.2106, allocations: 303.6 kB / 0.5937 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002606/0.2108, allocations: 226.8 kB / 0.5939 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002747/0.2111, allocations: 242.6 kB / 0.5941 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.484e-05/0.2112, allocations: 24 kB / 0.5942 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.463e-05/0.2113, allocations: 28 kB / 0.5942 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.103e-05/0.2114, allocations: 91.48 kB / 0.5943 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.2115, allocations: 157.3 kB / 0.5944 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006738/0.2122, allocations: 0.8105 MB / 0.5952 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.2122, allocations: 0 / 0.5952 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.983e-06/0.2122, allocations: 0 / 0.5952 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.928e-06/0.2122, allocations: 0 / 0.5952 GB, free: 11.02 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.001584/0.2138, allocations: 0.96 MB / 0.5962 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.2139, allocations: 12.03 kB / 0.5962 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001224/0.214, allocations: 98.52 kB / 0.5963 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.2141, allocations: 82.97 kB / 0.5963 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007781/0.2149, allocations: 0.5369 MB / 0.5969 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.891e-05/0.215, allocations: 45.25 kB / 0.5969 GB, free: 9.18 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.664e-05/0.2151, allocations: 60 kB / 0.597 GB, free: 9.121 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.2161, allocations: 0.6037 MB / 0.5976 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.444e-05/0.2162, allocations: 7.906 kB / 0.5976 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.754e-05/0.2162, allocations: 20 kB / 0.5976 GB, free: 8.465 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.2162, allocations: 12 kB / 0.5976 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008961/0.2171, allocations: 469 kB / 0.598 GB, free: 7.996 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002741/0.2199, allocations: 2.02 MB / 0.6 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008459/0.2208, allocations: 458.4 kB / 0.6005 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004083/0.2212, allocations: 246.1 kB / 0.6007 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.928e-05/0.2212, allocations: 4.438 kB / 0.6007 GB, free: 5.207 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005717/0.2218, allocations: 273.2 kB / 0.601 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 2.555e-06/0.2218, allocations: 0 / 0.601 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001224/0.223, allocations: 0.5967 MB / 0.6015 GB, free: 4.324 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.844e-05/0.2231, allocations: 55.84 kB / 0.6016 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004901/0.2236, allocations: 446 kB / 0.602 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.738e-05/0.2236, allocations: 37.64 kB / 0.6021 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002266/0.2239, allocations: 320.3 kB / 0.6024 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/0.224, allocations: 165.5 kB / 0.6025 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.373e-05/0.224, allocations: 12 kB / 0.6025 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001562/0.2242, allocations: 366.8 kB / 0.6029 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003498/0.2246, allocations: 173 kB / 0.603 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003912/0.225, allocations: 257.8 kB / 0.6033 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004158/0.2254, allocations: 219.9 kB / 0.6035 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2254, allocations: 4 kB / 0.6035 GB, free: 2.238 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009484/0.2264, allocations: 0.5663 MB / 0.6041 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.157e-05/0.2264, allocations: 33.7 kB / 0.6041 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.2264, allocations: 0 / 0.6041 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.2264, allocations: 11.95 kB / 0.6041 GB, free: 1.605 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004725/0.2269, allocations: 116.1 kB / 0.6042 GB, free: 1.492 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.2269, allocations: 11.94 kB / 0.6042 GB, free: 1.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003327/0.2273, allocations: 67.5 kB / 0.6043 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.689e-05/0.2273, allocations: 16 kB / 0.6043 GB, free: 1.398 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 ($whenCondition2,$whenCondition1,conWitRes.trigger.y,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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000272/0.2276, allocations: 209.7 kB / 0.6045 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.561e-05/0.2277, allocations: 59.33 kB / 0.6046 GB, free: 1.125 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001321/0.2278, allocations: 61.59 kB / 0.6046 GB, free: 1.066 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.2278, allocations: 7.953 kB / 0.6046 GB, free: 1.059 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.2278, allocations: 0 / 0.6046 GB, free: 1.059 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.2279, allocations: 7.984 kB / 0.6046 GB, free: 1.051 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3973/0.6252, allocations: 1.183 MB / 0.6058 GB, free: 48.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.6252, allocations: 0.9062 kB / 0.6058 GB, free: 48.62 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005292/0.6258, allocations: 100.4 kB / 0.6059 GB, free: 48.62 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.118e-05/0.6258, allocations: 4.641 kB / 0.6059 GB, free: 48.62 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.204e-05/0.6258, allocations: 14.67 kB / 0.6059 GB, free: 48.62 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.6258, allocations: 0 / 0.6059 GB, free: 48.62 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.6258, allocations: 2.938 kB / 0.6059 GB, free: 48.62 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.6272, allocations: 0.7691 MB / 0.6067 GB, free: 48.49 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001994/0.6274, allocations: 168.2 kB / 0.6068 GB, free: 48.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.818e-05/0.6274, allocations: 11.72 kB / 0.6068 GB, free: 48.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002701/0.6277, allocations: 34.22 kB / 0.6069 GB, free: 48.39 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.692e-05/0.6278, allocations: 35.66 kB / 0.6069 GB, free: 48.39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.928e-05/0.6278, allocations: 16.34 kB / 0.6069 GB, free: 48.39 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003517/0.6282, allocations: 309.5 kB / 0.6072 GB, free: 48.31 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6282, allocations: 0 / 0.6072 GB, free: 48.31 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004763/0.6287, allocations: 145 kB / 0.6073 GB, free: 48.31 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 (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.001317/0.63, allocations: 1.328 MB / 0.6086 GB, free: 47.61 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000862/0.6309, allocations: 493.9 kB / 0.6091 GB, free: 47.54 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.6309, allocations: 0 / 0.6091 GB, free: 47.54 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003857/0.6313, allocations: 222.5 kB / 0.6093 GB, free: 47.54 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007296/0.632, allocations: 144.8 kB / 0.6095 GB, free: 47.54 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005683/0.6377, allocations: 3.59 MB / 0.613 GB, free: 46.19 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003561/0.6381, allocations: 0.889 MB / 0.6138 GB, free: 45.49 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003087/0.6384, allocations: 60.73 kB / 0.6139 GB, free: 45.47 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002888/0.6387, allocations: 217 kB / 0.6141 GB, free: 45.46 MB / 0.4981 GB Notification: Performance of SimCode: time 1.022e-06/0.6387, allocations: 0 / 0.6141 GB, free: 45.46 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02358/0.6623, allocations: 10.65 MB / 0.6245 GB, free: 44.76 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001506/0.6625, allocations: 180.5 kB / 0.6247 GB, free: 44.52 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.25/2.912, allocations: 4 kB / 0.6247 GB, free: 44.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/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) Environment - environmentSimulation: