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: translateModel(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset") translateModel(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008901/0.0008901, allocations: 98.56 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001981/0.001981, allocations: 187.1 kB / 16.92 MB, free: 6.75 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.472/1.472, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9968/0.9968, allocations: 135.3 MB / 427.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003633/0.0003634, allocations: 8 kB / 0.5082 GB, free: 4.758 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1889/0.1893, allocations: 82.31 MB / 0.5886 GB, free: 2.613 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.00564/0.195, allocations: 3.689 MB / 0.5922 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003572/0.1986, allocations: 1.27 MB / 0.5935 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001015/0.1996, allocations: 19.94 kB / 0.5935 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005468/0.2002, allocations: 91.22 kB / 0.5936 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0007878/0.201, allocations: 154.8 kB / 0.5937 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001173/0.2022, allocations: 374.7 kB / 0.5941 GB, free: 13 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001306/0.2035, allocations: 0.8812 MB / 0.5949 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007743/0.2043, allocations: 422.1 kB / 0.5953 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004424/0.2048, allocations: 238.7 kB / 0.5956 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004354/0.2052, allocations: 250.4 kB / 0.5958 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.2053, allocations: 24 kB / 0.5958 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.579e-05/0.2054, allocations: 28 kB / 0.5958 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.2055, allocations: 99.47 kB / 0.5959 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003842/0.2059, allocations: 335.8 kB / 0.5963 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007777/0.2067, allocations: 0.7988 MB / 0.597 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.2067, allocations: 4 kB / 0.597 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.213e-06/0.2067, allocations: 0 / 0.597 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.363e-05/0.2068, allocations: 4 kB / 0.597 GB, free: 9.906 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.002009/0.2088, allocations: 0.9562 MB / 0.598 GB, free: 8.891 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.2089, allocations: 12.02 kB / 0.598 GB, free: 8.879 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002411/0.2091, allocations: 87.91 kB / 0.5981 GB, free: 8.793 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.2101, allocations: 0.5417 MB / 0.5986 GB, free: 8.219 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.746e-05/0.2102, allocations: 45.69 kB / 0.5986 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001012/0.2103, allocations: 60.38 kB / 0.5987 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001201/0.2115, allocations: 0.6156 MB / 0.5993 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.128e-05/0.2115, allocations: 0 / 0.5993 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.545e-05/0.2116, allocations: 28 kB / 0.5993 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.2116, allocations: 12 kB / 0.5993 GB, free: 7.438 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001004/0.2126, allocations: 473 kB / 0.5998 GB, free: 6.977 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002917/0.2155, allocations: 2.024 MB / 0.6018 GB, free: 4.875 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000917/0.2165, allocations: 458.4 kB / 0.6022 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004465/0.2169, allocations: 250.1 kB / 0.6024 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.61e-05/0.217, allocations: 4.438 kB / 0.6024 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005914/0.2176, allocations: 269.3 kB / 0.6027 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 2.024e-06/0.2176, allocations: 0 / 0.6027 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001334/0.2189, allocations: 0.6045 MB / 0.6033 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.799e-05/0.219, allocations: 59.78 kB / 0.6034 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000529/0.2195, allocations: 449.9 kB / 0.6038 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.11e-05/0.2196, allocations: 33.7 kB / 0.6038 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000254/0.2198, allocations: 324.3 kB / 0.6041 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001517/0.22, allocations: 161.6 kB / 0.6043 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.626e-05/0.2201, allocations: 57.69 kB / 0.6043 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.00016/0.2203, allocations: 362.8 kB / 0.6047 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004121/0.2207, allocations: 173 kB / 0.6048 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004479/0.2211, allocations: 257.8 kB / 0.6051 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008897/0.222, allocations: 464 kB / 0.6055 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.2221, allocations: 0 / 0.6055 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0011/0.2232, allocations: 0.5702 MB / 0.6061 GB, free: 312 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.018e-05/0.2232, allocations: 43.52 kB / 0.6061 GB, free: 264 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.2232, allocations: 0 / 0.6061 GB, free: 264 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.2233, allocations: 11.94 kB / 0.6061 GB, free: 252 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004867/0.2238, allocations: 115.8 kB / 0.6063 GB, free: 136 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.304e-05/0.2238, allocations: 4 kB / 0.6063 GB, free: 132 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003888/0.2242, allocations: 71.66 kB / 0.6063 GB, free: 60 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.294e-05/0.2242, allocations: 23.92 kB / 0.6063 GB, free: 36 kB / 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.3628/0.587, allocations: 202.5 kB / 0.6065 GB, free: 48.47 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001707/0.5872, allocations: 53.94 kB / 0.6066 GB, free: 48.47 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000149/0.5874, allocations: 64.23 kB / 0.6067 GB, free: 48.46 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.5874, allocations: 4.656 kB / 0.6067 GB, free: 48.46 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.5874, allocations: 0 / 0.6067 GB, free: 48.46 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.5874, allocations: 3.875 kB / 0.6067 GB, free: 48.46 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001803/0.5892, allocations: 1.193 MB / 0.6078 GB, free: 48.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.5892, allocations: 0.9688 kB / 0.6078 GB, free: 48.17 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004624/0.5897, allocations: 101.5 kB / 0.6079 GB, free: 48.17 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.914e-06/0.5897, allocations: 6.281 kB / 0.6079 GB, free: 48.17 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.039e-05/0.5898, allocations: 13.06 kB / 0.6079 GB, free: 48.17 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.5898, allocations: 0.5 kB / 0.6079 GB, free: 48.17 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.5898, allocations: 3.219 kB / 0.6079 GB, free: 48.17 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001185/0.591, allocations: 0.7723 MB / 0.6087 GB, free: 48.03 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001651/0.5911, allocations: 174.3 kB / 0.6089 GB, free: 47.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.839e-05/0.5912, allocations: 13.41 kB / 0.6089 GB, free: 47.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003028/0.5915, allocations: 34.56 kB / 0.6089 GB, free: 47.93 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.837e-05/0.5916, allocations: 34.17 kB / 0.6089 GB, free: 47.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.597e-05/0.5916, allocations: 12.44 kB / 0.609 GB, free: 47.93 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003179/0.592, allocations: 309.1 kB / 0.6093 GB, free: 47.84 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.592, allocations: 3.844 kB / 0.6093 GB, free: 47.84 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004589/0.5924, allocations: 140.6 kB / 0.6094 GB, free: 47.84 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.0001144/0.5926, allocations: 114.3 kB / 0.6095 GB, free: 47.76 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008663/0.5934, allocations: 491.5 kB / 0.61 GB, free: 47.69 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.5935, allocations: 0 / 0.61 GB, free: 47.69 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004/0.5939, allocations: 225 kB / 0.6102 GB, free: 47.68 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007793/0.5946, allocations: 144.2 kB / 0.6103 GB, free: 47.68 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002615/0.5973, allocations: 1.729 MB / 0.612 GB, free: 46.74 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002963/0.5976, allocations: 0.89 MB / 0.6129 GB, free: 46.03 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001464/0.5977, allocations: 46.53 kB / 0.6129 GB, free: 46.02 MB / 0.4981 GB Notification: Performance of SimCode: time 7.81e-07/0.5977, allocations: 0 / 0.6129 GB, free: 46.02 MB / 0.4981 GB Notification: Performance of Templates: time 0.009913/0.6077, allocations: 7.487 MB / 0.6202 GB, free: 45.43 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.makefile (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 & ./IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)