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.001424/0.001424, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001535/0.001535, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.489/1.489, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.067/1.067, allocations: 135.1 MB / 425.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00157/0.001571, allocations: 64.5 kB / 0.5047 GB, free: 5.785 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2457/0.2473, allocations: 80.92 MB / 0.5837 GB, free: 5.031 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.005519/0.2529, allocations: 4.108 MB / 0.5877 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002509/0.2554, allocations: 1.286 MB / 0.589 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003542/0.2558, allocations: 19.94 kB / 0.589 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003415/0.2562, allocations: 91.16 kB / 0.5891 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003247/0.2565, allocations: 150.9 kB / 0.5892 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008048/0.2573, allocations: 390.2 kB / 0.5896 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0007704/0.2581, allocations: 0.8773 MB / 0.5904 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005864/0.2587, allocations: 434.1 kB / 0.5909 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003068/0.259, allocations: 270.8 kB / 0.5911 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003582/0.2594, allocations: 306.3 kB / 0.5914 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.989e-05/0.2595, allocations: 40 kB / 0.5914 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.61e-05/0.2596, allocations: 40 kB / 0.5915 GB, free: 13 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.2597, allocations: 127.4 kB / 0.5916 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000314/0.26, allocations: 350 kB / 0.5919 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008322/0.2608, allocations: 0.993 MB / 0.5929 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.2609, allocations: 4 kB / 0.5929 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.513e-06/0.2609, allocations: 0 / 0.5929 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.578e-06/0.2609, allocations: 0 / 0.5929 GB, free: 11.53 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.00186/0.2627, allocations: 1.073 MB / 0.594 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.2628, allocations: 12.03 kB / 0.594 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001381/0.2629, allocations: 80 kB / 0.594 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008032/0.2637, allocations: 0.5534 MB / 0.5946 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.978e-05/0.2638, allocations: 45.69 kB / 0.5946 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.032e-05/0.2639, allocations: 52.38 kB / 0.5947 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001056/0.265, allocations: 0.6078 MB / 0.5953 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.249e-05/0.265, allocations: 7.906 kB / 0.5953 GB, free: 8.984 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.722e-05/0.2651, allocations: 31.98 kB / 0.5953 GB, free: 8.953 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.311e-05/0.2651, allocations: 12 kB / 0.5953 GB, free: 8.941 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009459/0.266, allocations: 457 kB / 0.5958 GB, free: 8.496 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002712/0.2687, allocations: 2.012 MB / 0.5977 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008854/0.2696, allocations: 451.7 kB / 0.5982 GB, free: 5.961 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004338/0.2701, allocations: 242.1 kB / 0.5984 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.991e-05/0.2701, allocations: 4.438 kB / 0.5984 GB, free: 5.719 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006358/0.2708, allocations: 257.3 kB / 0.5986 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 2.936e-06/0.2708, allocations: 0 / 0.5986 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001385/0.2722, allocations: 0.5889 MB / 0.5992 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.022e-05/0.2722, allocations: 55.84 kB / 0.5993 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000467/0.2727, allocations: 457.8 kB / 0.5997 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.779e-05/0.2728, allocations: 33.7 kB / 0.5997 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002408/0.273, allocations: 324.3 kB / 0.6 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.2731, allocations: 165.6 kB / 0.6002 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/0.2733, allocations: 94.25 kB / 0.6003 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001598/0.2735, allocations: 362.8 kB / 0.6006 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003795/0.2738, allocations: 173 kB / 0.6008 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004145/0.2743, allocations: 257.8 kB / 0.601 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007716/0.275, allocations: 452 kB / 0.6015 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.2751, allocations: 0 / 0.6015 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009979/0.2761, allocations: 0.5623 MB / 0.602 GB, free: 1.855 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.662e-05/0.2761, allocations: 39.83 kB / 0.6021 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.2761, allocations: 4 kB / 0.6021 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.2762, allocations: 4 kB / 0.6021 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004813/0.2767, allocations: 111.8 kB / 0.6022 GB, free: 1.695 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.401e-05/0.2767, allocations: 4 kB / 0.6022 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003494/0.277, allocations: 75.67 kB / 0.6023 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.843e-05/0.2771, allocations: 20 kB / 0.6023 GB, free: 1.598 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 (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.0002555/0.2773, allocations: 201.8 kB / 0.6025 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.831e-05/0.2774, allocations: 55.28 kB / 0.6025 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001257/0.2776, allocations: 69.58 kB / 0.6026 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.2776, allocations: 8 kB / 0.6026 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.2776, allocations: 0 / 0.6026 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.2776, allocations: 0 / 0.6026 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001774/0.2794, allocations: 1.177 MB / 0.6037 GB, free: 24 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.2794, allocations: 0 / 0.6037 GB, free: 24 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.4219/0.7013, allocations: 93.94 kB / 0.6038 GB, free: 52.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.184e-05/0.7013, allocations: 2.344 kB / 0.6038 GB, free: 52.02 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.333e-05/0.7014, allocations: 10.48 kB / 0.6038 GB, free: 52.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.855e-06/0.7014, allocations: 2.797 kB / 0.6038 GB, free: 52.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.7014, allocations: 0.8906 kB / 0.6039 GB, free: 52.02 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001515/0.7029, allocations: 0.7661 MB / 0.6046 GB, free: 51.89 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001989/0.7031, allocations: 166.1 kB / 0.6048 GB, free: 51.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.408e-05/0.7032, allocations: 14.59 kB / 0.6048 GB, free: 51.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003005/0.7035, allocations: 29.28 kB / 0.6048 GB, free: 51.79 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.977e-05/0.7036, allocations: 31.78 kB / 0.6048 GB, free: 51.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.951e-05/0.7037, allocations: 15.59 kB / 0.6048 GB, free: 51.79 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003406/0.704, allocations: 308.4 kB / 0.6051 GB, free: 51.71 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.704, allocations: 0.625 kB / 0.6051 GB, free: 51.71 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004761/0.7045, allocations: 141.7 kB / 0.6053 GB, free: 51.71 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.000132/0.7046, allocations: 119.2 kB / 0.6054 GB, free: 51.62 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008606/0.7055, allocations: 481.8 kB / 0.6058 GB, free: 51.55 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.7055, allocations: 1.641 kB / 0.6058 GB, free: 51.55 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003805/0.7059, allocations: 211.4 kB / 0.606 GB, free: 51.55 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000763/0.7067, allocations: 154.3 kB / 0.6062 GB, free: 51.55 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002497/0.7092, allocations: 1.609 MB / 0.6078 GB, free: 50.73 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002988/0.7095, allocations: 0.8923 MB / 0.6086 GB, free: 50.02 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002862/0.7098, allocations: 64.06 kB / 0.6087 GB, free: 50 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.7099, allocations: 39.55 kB / 0.6087 GB, free: 50 MB / 0.4981 GB Notification: Performance of SimCode: time 2.61e-07/0.7099, allocations: 3.188 kB / 0.6087 GB, free: 50 MB / 0.4981 GB Notification: Performance of Templates: time 0.00965/0.7196, allocations: 5.563 MB / 0.6142 GB, free: 49.7 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)