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.001184/0.001184, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001233/0.001233, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.245/1.245, allocations: 222.9 MB / 241 MB, free: 15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7495/0.7495, allocations: 135.1 MB / 426.3 MB, free: 4.117 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 63.91 kB / 0.5067 GB, free: 7.664 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3054, allocations: 80.91 MB / 0.5858 GB, free: 25.56 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.003967/0.3094, allocations: 4.097 MB / 0.5898 GB, free: 22.34 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.3109, allocations: 1.325 MB / 0.591 GB, free: 21.05 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002379/0.3112, allocations: 19.94 kB / 0.5911 GB, free: 21.04 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002499/0.3115, allocations: 127.3 kB / 0.5912 GB, free: 20.91 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002503/0.3117, allocations: 179.6 kB / 0.5914 GB, free: 20.74 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005856/0.3123, allocations: 424.4 kB / 0.5918 GB, free: 20.33 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005458/0.3129, allocations: 0.9554 MB / 0.5927 GB, free: 19.37 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004353/0.3133, allocations: 459.4 kB / 0.5931 GB, free: 18.9 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002124/0.3135, allocations: 326.8 kB / 0.5934 GB, free: 18.58 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002152/0.3138, allocations: 338.3 kB / 0.5938 GB, free: 18.25 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.604e-05/0.3138, allocations: 92.66 kB / 0.5939 GB, free: 18.16 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.057e-05/0.3139, allocations: 92 kB / 0.5939 GB, free: 18.07 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.996e-05/0.314, allocations: 172 kB / 0.5941 GB, free: 17.9 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002061/0.3142, allocations: 394.6 kB / 0.5945 GB, free: 17.52 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005183/0.3148, allocations: 1.057 MB / 0.5955 GB, free: 16.46 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.3148, allocations: 1 kB / 0.5955 GB, free: 16.46 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3148, allocations: 0 / 0.5955 GB, free: 16.46 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.3148, allocations: 7.938 kB / 0.5955 GB, free: 16.45 MB / 446.1 MB 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.001325/0.3161, allocations: 1.076 MB / 0.5966 GB, free: 15.33 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.813e-05/0.3161, allocations: 9.109 kB / 0.5966 GB, free: 15.32 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.702e-05/0.3163, allocations: 84 kB / 0.5967 GB, free: 15.24 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006439/0.3169, allocations: 0.5602 MB / 0.5972 GB, free: 14.64 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.3169, allocations: 46.44 kB / 0.5973 GB, free: 14.6 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.794e-05/0.317, allocations: 64.28 kB / 0.5973 GB, free: 14.54 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007741/0.3178, allocations: 0.6106 MB / 0.5979 GB, free: 13.9 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.3178, allocations: 0 / 0.5979 GB, free: 13.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.133e-05/0.3179, allocations: 25.34 kB / 0.5979 GB, free: 13.88 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.3179, allocations: 16 kB / 0.598 GB, free: 13.86 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007608/0.3186, allocations: 454.2 kB / 0.5984 GB, free: 13.42 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001987/0.3206, allocations: 2.007 MB / 0.6003 GB, free: 11.35 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007268/0.3214, allocations: 453 kB / 0.6008 GB, free: 10.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000343/0.3217, allocations: 239.3 kB / 0.601 GB, free: 10.66 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.387e-05/0.3218, allocations: 8.438 kB / 0.601 GB, free: 10.66 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003965/0.3222, allocations: 268.8 kB / 0.6013 GB, free: 10.39 MB / 446.1 MB Notification: Performance of pre-optimization done (n=49): time 1.884e-06/0.3222, allocations: 3.938 kB / 0.6013 GB, free: 10.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=49): time 0.0009854/0.3232, allocations: 0.5814 MB / 0.6018 GB, free: 9.797 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.3232, allocations: 56.97 kB / 0.6019 GB, free: 9.73 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003248/0.3236, allocations: 442 kB / 0.6023 GB, free: 9.289 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.594e-05/0.3236, allocations: 34.92 kB / 0.6024 GB, free: 9.25 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.3237, allocations: 329 kB / 0.6027 GB, free: 8.926 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.949e-05/0.3238, allocations: 157.7 kB / 0.6028 GB, free: 8.77 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.3239, allocations: 95.58 kB / 0.6029 GB, free: 8.672 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.223e-05/0.324, allocations: 362.8 kB / 0.6033 GB, free: 8.309 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003116/0.3243, allocations: 170.3 kB / 0.6034 GB, free: 8.141 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003244/0.3246, allocations: 252.4 kB / 0.6037 GB, free: 7.871 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006181/0.3253, allocations: 449.9 kB / 0.6041 GB, free: 7.402 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3253, allocations: 0 / 0.6041 GB, free: 7.402 MB / 446.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007816/0.3261, allocations: 0.5657 MB / 0.6046 GB, free: 6.824 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.3261, allocations: 39.67 kB / 0.6047 GB, free: 6.781 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.3261, allocations: 4 kB / 0.6047 GB, free: 6.777 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.3261, allocations: 4.625 kB / 0.6047 GB, free: 6.773 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004265/0.3265, allocations: 117.3 kB / 0.6048 GB, free: 6.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.3266, allocations: 4 kB / 0.6048 GB, free: 6.656 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002672/0.3268, allocations: 60.5 kB / 0.6049 GB, free: 6.598 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.048e-05/0.3269, allocations: 16 kB / 0.6049 GB, free: 6.582 MB / 446.1 MB 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.0001721/0.3271, allocations: 209.4 kB / 0.6051 GB, free: 6.371 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.944e-05/0.3271, allocations: 59.28 kB / 0.6051 GB, free: 6.312 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001024/0.3272, allocations: 63.23 kB / 0.6052 GB, free: 6.254 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.3272, allocations: 8 kB / 0.6052 GB, free: 6.246 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3272, allocations: 0 / 0.6052 GB, free: 6.246 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3272, allocations: 4.609 kB / 0.6052 GB, free: 6.242 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001235/0.3285, allocations: 1.185 MB / 0.6064 GB, free: 5.004 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.3285, allocations: 0 / 0.6064 GB, free: 5.004 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000423/0.3289, allocations: 95.83 kB / 0.6064 GB, free: 4.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.3289, allocations: 4 kB / 0.6065 GB, free: 4.906 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.845e-05/0.329, allocations: 12.7 kB / 0.6065 GB, free: 4.895 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.329, allocations: 4 kB / 0.6065 GB, free: 4.891 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.329, allocations: 1.375 kB / 0.6065 GB, free: 4.891 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009948/0.33, allocations: 0.7563 MB / 0.6072 GB, free: 4.121 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.3301, allocations: 172.3 kB / 0.6074 GB, free: 3.934 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.524e-05/0.3302, allocations: 12 kB / 0.6074 GB, free: 3.922 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002597/0.3305, allocations: 33.91 kB / 0.6074 GB, free: 3.891 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.169e-05/0.3305, allocations: 36.39 kB / 0.6075 GB, free: 3.855 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.291e-05/0.3306, allocations: 12 kB / 0.6075 GB, free: 3.844 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002326/0.3308, allocations: 311.5 kB / 0.6078 GB, free: 3.543 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3308, allocations: 3.938 kB / 0.6078 GB, free: 3.539 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003494/0.3312, allocations: 140.2 kB / 0.6079 GB, free: 3.402 MB / 446.1 MB 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 9.338e-05/0.3313, allocations: 110.3 kB / 0.608 GB, free: 3.289 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0007134/0.332, allocations: 487.5 kB / 0.6085 GB, free: 2.797 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.332, allocations: 0 / 0.6085 GB, free: 2.797 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003175/0.3323, allocations: 212 kB / 0.6087 GB, free: 2.594 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006211/0.333, allocations: 168.8 kB / 0.6088 GB, free: 2.441 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001893/0.3349, allocations: 1.329 MB / 0.6101 GB, free: 1.09 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002185/0.3351, allocations: 0.886 MB / 0.611 GB, free: 180 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001954/0.3353, allocations: 68.58 kB / 0.6111 GB, free: 108 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.583e-05/0.3354, allocations: 43.42 kB / 0.6111 GB, free: 64 kB / 446.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3354, allocations: 0 / 0.6111 GB, free: 64 kB / 446.1 MB Notification: Performance of Templates: time 0.009779/0.3452, allocations: 5.913 MB / 0.6169 GB, free: 10.23 MB / 462.1 MB 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 -s gbode -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)