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.001819/0.001819, allocations: 106 kB / 16.41 MB, free: 6.516 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.002044/0.002044, allocations: 184.2 kB / 17.34 MB, free: 5.738 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.545/1.545, 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-master/package.mo): time 0.8612/0.8612, allocations: 135.2 MB / 426.4 MB, free: 4.098 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002084/0.002084, allocations: 61.12 kB / 0.5863 GB, free: 21.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1831/0.1851, allocations: 80.93 MB / 0.6653 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.006048/0.1912, allocations: 4.101 MB / 0.6693 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002915/0.1941, allocations: 1.328 MB / 0.6706 GB, free: 316 kB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004115/0.1945, allocations: 27.88 kB / 0.6707 GB, free: 288 kB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003555/0.1949, allocations: 122.8 kB / 0.6708 GB, free: 164 kB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003976/0.1953, allocations: 186.3 kB / 0.6709 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008816/0.1961, allocations: 414.2 kB / 0.6713 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.00112/0.1973, allocations: 0.9669 MB / 0.6723 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005451/0.1978, allocations: 302.2 kB / 0.6726 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004138/0.1982, allocations: 338.7 kB / 0.6729 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003909/0.1986, allocations: 338.3 kB / 0.6732 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001287/0.1987, allocations: 92 kB / 0.6733 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001154/0.1989, allocations: 92 kB / 0.6734 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001675/0.199, allocations: 187.3 kB / 0.6736 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0003694/0.1994, allocations: 386.1 kB / 0.6739 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001186/0.2006, allocations: 1.07 MB / 0.675 GB, free: 11.81 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.2006, allocations: 0 / 0.675 GB, free: 11.81 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.522e-06/0.2006, allocations: 0 / 0.675 GB, free: 11.81 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.659e-05/0.2006, allocations: 0 / 0.675 GB, free: 11.81 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.002019/0.2026, allocations: 1.092 MB / 0.6761 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.2027, allocations: 13.11 kB / 0.6761 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001508/0.2028, allocations: 88.38 kB / 0.6762 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001018/0.2038, allocations: 0.5771 MB / 0.6767 GB, free: 9.941 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.548e-05/0.2039, allocations: 45.69 kB / 0.6768 GB, free: 9.898 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.204, allocations: 56.38 kB / 0.6768 GB, free: 9.844 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/0.2052, allocations: 0.6156 MB / 0.6774 GB, free: 9.203 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.261e-05/0.2052, allocations: 0 / 0.6774 GB, free: 9.203 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.661e-05/0.2052, allocations: 31.98 kB / 0.6774 GB, free: 9.172 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.712e-05/0.2053, allocations: 12 kB / 0.6775 GB, free: 9.16 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/0.2063, allocations: 461 kB / 0.6779 GB, free: 8.711 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003099/0.2094, allocations: 1.993 MB / 0.6798 GB, free: 6.645 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000962/0.2104, allocations: 425.7 kB / 0.6802 GB, free: 6.223 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004761/0.2108, allocations: 223.4 kB / 0.6805 GB, free: 6.004 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 4.351e-05/0.2109, allocations: 4.438 kB / 0.6805 GB, free: 6 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005672/0.2114, allocations: 269.2 kB / 0.6807 GB, free: 5.723 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=49): time 2.023e-06/0.2115, allocations: 0 / 0.6807 GB, free: 5.723 MB / 0.5137 GB Notification: Performance of matching and sorting (n=49): time 0.001401/0.2129, allocations: 0.5808 MB / 0.6813 GB, free: 5.141 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.757e-05/0.2129, allocations: 59.83 kB / 0.6813 GB, free: 5.066 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005695/0.2135, allocations: 450 kB / 0.6818 GB, free: 4.617 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.287e-05/0.2135, allocations: 29.7 kB / 0.6818 GB, free: 4.582 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002972/0.2138, allocations: 329.6 kB / 0.6821 GB, free: 4.258 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/0.214, allocations: 174.5 kB / 0.6823 GB, free: 4.086 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.2141, allocations: 98.2 kB / 0.6824 GB, free: 3.984 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001996/0.2143, allocations: 366.8 kB / 0.6827 GB, free: 3.617 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004105/0.2147, allocations: 161 kB / 0.6829 GB, free: 3.461 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004714/0.2152, allocations: 249.8 kB / 0.6831 GB, free: 3.191 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008812/0.2161, allocations: 452 kB / 0.6836 GB, free: 2.719 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.2161, allocations: 4 kB / 0.6836 GB, free: 2.715 MB / 0.5137 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001128/0.2172, allocations: 0.5627 MB / 0.6841 GB, free: 2.141 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.79e-05/0.2173, allocations: 37.62 kB / 0.6841 GB, free: 2.098 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.2173, allocations: 7.938 kB / 0.6841 GB, free: 2.09 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.337e-05/0.2173, allocations: 4 kB / 0.6842 GB, free: 2.086 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005002/0.2178, allocations: 112.1 kB / 0.6843 GB, free: 1.977 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.53e-05/0.2178, allocations: 15.98 kB / 0.6843 GB, free: 1.961 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003306/0.2182, allocations: 59.58 kB / 0.6843 GB, free: 1.902 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.433e-05/0.2182, allocations: 24 kB / 0.6844 GB, free: 1.879 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.0002992/0.2185, allocations: 205.7 kB / 0.6845 GB, free: 1.668 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.873e-05/0.2186, allocations: 59.56 kB / 0.6846 GB, free: 1.609 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001367/0.2187, allocations: 65.58 kB / 0.6847 GB, free: 1.547 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.2187, allocations: 8 kB / 0.6847 GB, free: 1.539 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.2187, allocations: 0 / 0.6847 GB, free: 1.539 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.2187, allocations: 0 / 0.6847 GB, free: 1.539 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001938/0.2207, allocations: 1.178 MB / 0.6858 GB, free: 308 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.2207, allocations: 3.984 kB / 0.6858 GB, free: 304 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004655/0.2212, allocations: 91.89 kB / 0.6859 GB, free: 212 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.029e-05/0.2212, allocations: 11.98 kB / 0.6859 GB, free: 200 kB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.505e-05/0.2212, allocations: 11.98 kB / 0.6859 GB, free: 188 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.2212, allocations: 0 / 0.6859 GB, free: 188 kB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2212, allocations: 0 / 0.6859 GB, free: 188 kB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001491/0.2227, allocations: 0.7771 MB / 0.6867 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002079/0.2229, allocations: 168.7 kB / 0.6869 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.414e-05/0.223, allocations: 12 kB / 0.6869 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002752/0.2232, allocations: 23.97 kB / 0.6869 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.2234, allocations: 36.39 kB / 0.6869 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.158e-05/0.2234, allocations: 12 kB / 0.6869 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003827/0.2238, allocations: 310.9 kB / 0.6872 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6e-08/0.2238, allocations: 0 / 0.6872 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0004725/0.2242, allocations: 147.6 kB / 0.6874 GB, free: 14.68 MB / 0.5294 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.0001524/0.2244, allocations: 111.2 kB / 0.6875 GB, free: 14.56 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001005/0.2254, allocations: 457.5 kB / 0.6879 GB, free: 14.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.2254, allocations: 4 kB / 0.6879 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0004352/0.2258, allocations: 202.4 kB / 0.6881 GB, free: 13.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007899/0.2266, allocations: 158.2 kB / 0.6883 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002981/0.2296, allocations: 1.408 MB / 0.6896 GB, free: 12.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006089/0.2302, allocations: 0.8899 MB / 0.6905 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001664/0.2304, allocations: 47.42 kB / 0.6906 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of SimCode: time 5.31e-07/0.2304, allocations: 0 / 0.6906 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of Templates: time 0.01264/0.243, allocations: 7.678 MB / 0.6981 GB, free: 3.699 MB / 0.5294 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)