Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.Controls.Continuous.Examples.LimPIDWithReset") translateModel(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001292/0.001292, allocations: 107.2 kB / 16.41 MB, free: 6.484 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.001161/0.001161, allocations: 193.4 kB / 17.34 MB, free: 5.762 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.606/1.606, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.881/0.881, allocations: 132.2 MB / 423.4 MB, free: 6.559 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 63.31 kB / 0.582 GB, free: 23.73 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1964/0.1978, allocations: 80.22 MB / 0.6603 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.006691/0.2045, allocations: 4.093 MB / 0.6643 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003454/0.208, allocations: 1.332 MB / 0.6656 GB, free: 4.828 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001042/0.2091, allocations: 23.88 kB / 0.6656 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006294/0.2097, allocations: 126.7 kB / 0.6657 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000949/0.2108, allocations: 178.4 kB / 0.6659 GB, free: 4.504 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001153/0.2119, allocations: 413.5 kB / 0.6663 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001302/0.2132, allocations: 0.9593 MB / 0.6672 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006426/0.2139, allocations: 454.1 kB / 0.6677 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004328/0.2143, allocations: 334.7 kB / 0.668 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003476/0.2147, allocations: 342.4 kB / 0.6683 GB, free: 2.012 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.2148, allocations: 92 kB / 0.6684 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001114/0.2149, allocations: 88 kB / 0.6685 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.2151, allocations: 183.3 kB / 0.6687 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003408/0.2154, allocations: 390.1 kB / 0.669 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009815/0.2164, allocations: 1.067 MB / 0.6701 GB, free: 208 kB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.2164, allocations: 0 / 0.6701 GB, free: 208 kB / 0.4981 GB Notification: Performance of FrontEnd: time 1.693e-06/0.2165, allocations: 0 / 0.6701 GB, free: 208 kB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.101e-05/0.2165, allocations: 4 kB / 0.6701 GB, free: 204 kB / 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.001912/0.2184, allocations: 1.073 MB / 0.6711 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.2184, allocations: 11.97 kB / 0.6711 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001421/0.2186, allocations: 87.91 kB / 0.6712 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009434/0.2195, allocations: 0.5611 MB / 0.6718 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.44e-05/0.2196, allocations: 49.67 kB / 0.6718 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.404e-05/0.2197, allocations: 60.38 kB / 0.6719 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.2207, allocations: 0.6078 MB / 0.6725 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.2208, allocations: 0 / 0.6725 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.624e-05/0.2208, allocations: 27.98 kB / 0.6725 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.521e-05/0.2209, allocations: 16 kB / 0.6725 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009507/0.2218, allocations: 457 kB / 0.673 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002772/0.2246, allocations: 1.989 MB / 0.6749 GB, free: 11.08 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008965/0.2255, allocations: 445.8 kB / 0.6753 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004346/0.226, allocations: 242 kB / 0.6756 GB, free: 10.4 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.861e-05/0.226, allocations: 8.438 kB / 0.6756 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000553/0.2266, allocations: 265.3 kB / 0.6758 GB, free: 10.12 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=49): time 2.875e-06/0.2266, allocations: 0 / 0.6758 GB, free: 10.12 MB / 0.5137 GB Notification: Performance of matching and sorting (n=49): time 0.001286/0.2279, allocations: 0.5806 MB / 0.6764 GB, free: 9.531 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.884e-05/0.2279, allocations: 59.78 kB / 0.6764 GB, free: 9.461 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005116/0.2285, allocations: 450 kB / 0.6769 GB, free: 9.012 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.724e-05/0.2285, allocations: 37.64 kB / 0.6769 GB, free: 8.969 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002311/0.2288, allocations: 320.3 kB / 0.6772 GB, free: 8.652 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.2289, allocations: 169.5 kB / 0.6774 GB, free: 8.484 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001554/0.2291, allocations: 90.25 kB / 0.6775 GB, free: 8.391 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001699/0.2292, allocations: 366.8 kB / 0.6778 GB, free: 8.023 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003703/0.2296, allocations: 165 kB / 0.678 GB, free: 7.863 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003997/0.23, allocations: 249.8 kB / 0.6782 GB, free: 7.594 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008137/0.2308, allocations: 460 kB / 0.6786 GB, free: 7.105 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.2309, allocations: 0 / 0.6786 GB, free: 7.105 MB / 0.5137 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009885/0.2319, allocations: 0.5546 MB / 0.6792 GB, free: 6.543 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.899e-05/0.2319, allocations: 41.62 kB / 0.6792 GB, free: 6.496 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.2319, allocations: 4.25 kB / 0.6792 GB, free: 6.492 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.298e-05/0.232, allocations: 8 kB / 0.6792 GB, free: 6.484 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004812/0.2324, allocations: 115.8 kB / 0.6793 GB, free: 6.371 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/0.2325, allocations: 4 kB / 0.6793 GB, free: 6.367 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003314/0.2328, allocations: 55.52 kB / 0.6794 GB, free: 6.312 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.167e-05/0.2328, allocations: 19.98 kB / 0.6794 GB, free: 6.293 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.0002645/0.2331, allocations: 209.7 kB / 0.6796 GB, free: 6.078 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.078e-05/0.2332, allocations: 67.19 kB / 0.6797 GB, free: 6.012 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001364/0.2333, allocations: 61.58 kB / 0.6797 GB, free: 5.949 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.2334, allocations: 11.98 kB / 0.6798 GB, free: 5.938 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.2334, allocations: 0 / 0.6798 GB, free: 5.938 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.2334, allocations: 0 / 0.6798 GB, free: 5.938 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001727/0.2351, allocations: 1.178 MB / 0.6809 GB, free: 4.707 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.2351, allocations: 4 kB / 0.6809 GB, free: 4.703 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004428/0.2356, allocations: 95.88 kB / 0.681 GB, free: 4.609 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.2356, allocations: 4 kB / 0.681 GB, free: 4.605 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.87e-05/0.2356, allocations: 4 kB / 0.681 GB, free: 4.602 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.2356, allocations: 4 kB / 0.681 GB, free: 4.598 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2356, allocations: 0 / 0.681 GB, free: 4.598 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001265/0.2369, allocations: 0.7651 MB / 0.6818 GB, free: 3.816 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00018/0.2371, allocations: 172.3 kB / 0.6819 GB, free: 3.629 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.697e-05/0.2372, allocations: 12 kB / 0.6819 GB, free: 3.617 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002785/0.2375, allocations: 23.97 kB / 0.682 GB, free: 3.594 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.802e-05/0.2376, allocations: 36.39 kB / 0.682 GB, free: 3.559 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.841e-05/0.2376, allocations: 12 kB / 0.682 GB, free: 3.547 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003368/0.2379, allocations: 310.9 kB / 0.6823 GB, free: 3.246 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.61e-07/0.238, allocations: 0 / 0.6823 GB, free: 3.246 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004738/0.2384, allocations: 147.4 kB / 0.6824 GB, free: 3.102 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.0001629/0.2386, allocations: 111.4 kB / 0.6825 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.000908/0.2395, allocations: 485.1 kB / 0.683 GB, free: 2.496 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2395, allocations: 3.938 kB / 0.683 GB, free: 2.492 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0004071/0.2399, allocations: 218.4 kB / 0.6832 GB, free: 2.281 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007666/0.2407, allocations: 159.8 kB / 0.6834 GB, free: 2.137 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002731/0.2435, allocations: 1.378 MB / 0.6847 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004677/0.2439, allocations: 0.886 MB / 0.6856 GB, free: 15.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/0.2441, allocations: 43.44 kB / 0.6856 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of SimCode: time 2.144e-06/0.2441, allocations: 3.938 kB / 0.6856 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of Templates: time 0.0114/0.2555, allocations: 7.748 MB / 0.6932 GB, free: 8.051 MB / 0.5294 GB make -j1 -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.sim & ./IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)