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.008181/0.008181, allocations: 101.9 kB / 15.73 MB, free: 5.492 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.001462/0.001462, allocations: 186.5 kB / 16.67 MB, free: 5.422 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.534/1.534, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.881/0.881, allocations: 135.1 MB / 425.7 MB, free: 4.035 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 60.75 kB / 0.5856 GB, free: 21.75 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1973/0.1984, allocations: 80.92 MB / 0.6646 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.005669/0.2042, allocations: 4.111 MB / 0.6686 GB, free: 1.695 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002589/0.2068, allocations: 1.325 MB / 0.6699 GB, free: 372 kB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003824/0.2072, allocations: 23.88 kB / 0.6699 GB, free: 348 kB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003446/0.2075, allocations: 126.8 kB / 0.67 GB, free: 220 kB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003719/0.208, allocations: 190.3 kB / 0.6702 GB, free: 28 kB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008939/0.2089, allocations: 410.8 kB / 0.6706 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0009432/0.2098, allocations: 0.9671 MB / 0.6716 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006447/0.2105, allocations: 458.1 kB / 0.672 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000379/0.2108, allocations: 338.7 kB / 0.6723 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003487/0.2112, allocations: 330.4 kB / 0.6726 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001147/0.2113, allocations: 92 kB / 0.6727 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/0.2114, allocations: 92 kB / 0.6728 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001551/0.2116, allocations: 183.3 kB / 0.673 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0003226/0.2119, allocations: 390.1 kB / 0.6734 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0009337/0.2129, allocations: 1.071 MB / 0.6744 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.2129, allocations: 0 / 0.6744 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.743e-06/0.2129, allocations: 3.938 kB / 0.6744 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.508e-06/0.2129, allocations: 0 / 0.6744 GB, free: 11.71 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.001914/0.2148, allocations: 1.069 MB / 0.6755 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/0.2149, allocations: 13.11 kB / 0.6755 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001541/0.215, allocations: 87.91 kB / 0.6756 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009073/0.216, allocations: 0.5611 MB / 0.6761 GB, free: 9.887 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.179e-05/0.216, allocations: 45.69 kB / 0.6761 GB, free: 9.844 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.2161, allocations: 64.38 kB / 0.6762 GB, free: 9.781 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001067/0.2172, allocations: 0.6039 MB / 0.6768 GB, free: 9.152 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.223e-05/0.2172, allocations: 3.984 kB / 0.6768 GB, free: 9.148 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.234e-05/0.2173, allocations: 24 kB / 0.6768 GB, free: 9.125 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.152e-05/0.2173, allocations: 16 kB / 0.6768 GB, free: 9.109 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009639/0.2183, allocations: 461 kB / 0.6773 GB, free: 8.656 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002719/0.221, allocations: 1.985 MB / 0.6792 GB, free: 6.598 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00094/0.222, allocations: 445.2 kB / 0.6796 GB, free: 6.16 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000449/0.2224, allocations: 247.3 kB / 0.6799 GB, free: 5.918 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 4.518e-05/0.2225, allocations: 8.375 kB / 0.6799 GB, free: 5.91 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005676/0.2231, allocations: 269.3 kB / 0.6801 GB, free: 5.633 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=49): time 2.014e-06/0.2231, allocations: 0 / 0.6801 GB, free: 5.633 MB / 0.5137 GB Notification: Performance of matching and sorting (n=49): time 0.001327/0.2244, allocations: 0.5845 MB / 0.6807 GB, free: 5.047 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.459e-05/0.2245, allocations: 55.84 kB / 0.6808 GB, free: 4.977 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004925/0.225, allocations: 453.9 kB / 0.6812 GB, free: 4.523 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.515e-05/0.225, allocations: 29.7 kB / 0.6812 GB, free: 4.488 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002331/0.2253, allocations: 320.3 kB / 0.6815 GB, free: 4.172 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.2254, allocations: 165.6 kB / 0.6817 GB, free: 4.008 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001381/0.2255, allocations: 102.2 kB / 0.6818 GB, free: 3.902 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000162/0.2257, allocations: 366.8 kB / 0.6821 GB, free: 3.535 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003813/0.2261, allocations: 161 kB / 0.6823 GB, free: 3.379 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000428/0.2265, allocations: 249.8 kB / 0.6825 GB, free: 3.105 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008181/0.2274, allocations: 452 kB / 0.683 GB, free: 2.633 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.2274, allocations: 4 kB / 0.683 GB, free: 2.629 MB / 0.5137 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001034/0.2284, allocations: 0.5585 MB / 0.6835 GB, free: 2.059 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 5.161e-05/0.2285, allocations: 41.56 kB / 0.6835 GB, free: 2.012 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.927e-05/0.2285, allocations: 4 kB / 0.6836 GB, free: 2.008 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.2285, allocations: 4 kB / 0.6836 GB, free: 2.004 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004875/0.229, allocations: 111.8 kB / 0.6837 GB, free: 1.895 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.2291, allocations: 4 kB / 0.6837 GB, free: 1.891 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003336/0.2294, allocations: 59.77 kB / 0.6837 GB, free: 1.832 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.514e-05/0.2295, allocations: 23.98 kB / 0.6837 GB, free: 1.809 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.0002918/0.2298, allocations: 211.8 kB / 0.6839 GB, free: 1.594 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.761e-05/0.2299, allocations: 55.28 kB / 0.684 GB, free: 1.539 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001428/0.23, allocations: 69.58 kB / 0.6841 GB, free: 1.473 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.23, allocations: 4 kB / 0.6841 GB, free: 1.469 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/0.23, allocations: 0 / 0.6841 GB, free: 1.469 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.23, allocations: 4 kB / 0.6841 GB, free: 1.465 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001791/0.2318, allocations: 1.182 MB / 0.6852 GB, free: 228 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.2319, allocations: 0 / 0.6852 GB, free: 228 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004654/0.2323, allocations: 95.88 kB / 0.6853 GB, free: 132 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.2323, allocations: 4 kB / 0.6853 GB, free: 128 kB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.081e-05/0.2324, allocations: 12 kB / 0.6853 GB, free: 116 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.2324, allocations: 0 / 0.6853 GB, free: 116 kB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.2324, allocations: 3.984 kB / 0.6853 GB, free: 112 kB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.2337, allocations: 0.7612 MB / 0.6861 GB, free: 15.33 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001867/0.2339, allocations: 172.3 kB / 0.6862 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.353e-05/0.234, allocations: 12 kB / 0.6863 GB, free: 15.13 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002744/0.2343, allocations: 27.91 kB / 0.6863 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.412e-05/0.2344, allocations: 36.39 kB / 0.6863 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-05/0.2344, allocations: 12 kB / 0.6863 GB, free: 15.06 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003411/0.2348, allocations: 306.9 kB / 0.6866 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2348, allocations: 0 / 0.6866 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00046/0.2352, allocations: 147.4 kB / 0.6868 GB, free: 14.62 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.0001602/0.2354, allocations: 115.2 kB / 0.6869 GB, free: 14.49 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0009867/0.2364, allocations: 477 kB / 0.6873 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2364, allocations: 4.5 kB / 0.6873 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0004146/0.2368, allocations: 218.4 kB / 0.6875 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007546/0.2376, allocations: 162.1 kB / 0.6877 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002673/0.2403, allocations: 1.337 MB / 0.689 GB, free: 12.27 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004715/0.2408, allocations: 0.8821 MB / 0.6899 GB, free: 11.36 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002668/0.2411, allocations: 68.58 kB / 0.6899 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.2412, allocations: 39.44 kB / 0.69 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of SimCode: time 2.7e-07/0.2412, allocations: 4 kB / 0.69 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of Templates: time 0.01143/0.2526, allocations: 5.998 MB / 0.6958 GB, free: 5.328 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)