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.001561/0.001561, allocations: 109.4 kB / 16.27 MB, free: 6.004 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.001478/0.001479, allocations: 188.3 kB / 17.2 MB, free: 5.617 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.403/1.403, allocations: 222.9 MB / 240.9 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8474/0.8474, allocations: 135.2 MB / 426.2 MB, free: 4.191 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 63.89 kB / 0.506 GB, free: 8.406 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3924/0.3943, allocations: 80.92 MB / 0.5851 GB, free: 25.45 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.004311/0.3987, allocations: 4.094 MB / 0.589 GB, free: 22.23 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001806/0.4005, allocations: 1.322 MB / 0.5903 GB, free: 21.13 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002637/0.4008, allocations: 27.19 kB / 0.5904 GB, free: 21.12 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002417/0.4011, allocations: 123 kB / 0.5905 GB, free: 21.01 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002568/0.4013, allocations: 175.6 kB / 0.5907 GB, free: 20.86 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006114/0.4019, allocations: 420.4 kB / 0.5911 GB, free: 20.53 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005155/0.4025, allocations: 0.9529 MB / 0.592 GB, free: 19.59 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004353/0.4029, allocations: 454.5 kB / 0.5924 GB, free: 19.13 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002064/0.4031, allocations: 330.7 kB / 0.5927 GB, free: 18.8 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000219/0.4033, allocations: 342.9 kB / 0.5931 GB, free: 18.47 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.186e-05/0.4034, allocations: 93.06 kB / 0.5931 GB, free: 18.38 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.147e-05/0.4035, allocations: 88 kB / 0.5932 GB, free: 18.29 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.333e-05/0.4036, allocations: 171.4 kB / 0.5934 GB, free: 18.12 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002128/0.4038, allocations: 398.6 kB / 0.5938 GB, free: 17.73 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005247/0.4044, allocations: 1.026 MB / 0.5948 GB, free: 16.71 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.4044, allocations: 0.8438 kB / 0.5948 GB, free: 16.71 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4044, allocations: 0 / 0.5948 GB, free: 16.71 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.4044, allocations: 1.094 kB / 0.5948 GB, free: 16.71 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.001389/0.4058, allocations: 1.086 MB / 0.5958 GB, free: 15.57 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.02e-05/0.4058, allocations: 14.23 kB / 0.5959 GB, free: 15.56 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.4059, allocations: 87.98 kB / 0.5959 GB, free: 15.47 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005828/0.4065, allocations: 0.5473 MB / 0.5965 GB, free: 14.89 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.4066, allocations: 45.62 kB / 0.5965 GB, free: 14.84 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.307e-05/0.4066, allocations: 64.28 kB / 0.5966 GB, free: 14.78 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007741/0.4074, allocations: 0.6064 MB / 0.5972 GB, free: 14.15 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/0.4074, allocations: 4 kB / 0.5972 GB, free: 14.15 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.454e-05/0.4075, allocations: 24.81 kB / 0.5972 GB, free: 14.12 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.4075, allocations: 16 kB / 0.5972 GB, free: 14.11 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007744/0.4083, allocations: 458.9 kB / 0.5976 GB, free: 13.66 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002016/0.4103, allocations: 2.023 MB / 0.5996 GB, free: 11.58 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007135/0.411, allocations: 443.3 kB / 0.6 GB, free: 11.14 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003506/0.4114, allocations: 243.5 kB / 0.6003 GB, free: 10.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.203e-05/0.4114, allocations: 4.438 kB / 0.6003 GB, free: 10.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004725/0.4119, allocations: 263.2 kB / 0.6005 GB, free: 10.63 MB / 446.1 MB Notification: Performance of pre-optimization done (n=49): time 1.613e-06/0.4119, allocations: 0 / 0.6005 GB, free: 10.63 MB / 446.1 MB Notification: Performance of matching and sorting (n=49): time 0.001027/0.413, allocations: 0.5798 MB / 0.6011 GB, free: 10.05 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.607e-05/0.413, allocations: 59.83 kB / 0.6012 GB, free: 9.98 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003338/0.4133, allocations: 446 kB / 0.6016 GB, free: 9.535 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.4134, allocations: 33.7 kB / 0.6016 GB, free: 9.496 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.4135, allocations: 328.3 kB / 0.6019 GB, free: 9.176 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.075e-05/0.4136, allocations: 161.7 kB / 0.6021 GB, free: 9.016 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.4137, allocations: 90.25 kB / 0.6022 GB, free: 8.922 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.252e-05/0.4138, allocations: 366.8 kB / 0.6025 GB, free: 8.555 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003149/0.4141, allocations: 165 kB / 0.6027 GB, free: 8.391 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003351/0.4145, allocations: 253.7 kB / 0.6029 GB, free: 8.125 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000635/0.4151, allocations: 452.5 kB / 0.6033 GB, free: 7.652 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.4151, allocations: 4 kB / 0.6034 GB, free: 7.648 MB / 446.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000794/0.4159, allocations: 0.5705 MB / 0.6039 GB, free: 7.066 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.416, allocations: 37.64 kB / 0.6039 GB, free: 7.023 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.416, allocations: 4 kB / 0.6039 GB, free: 7.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.416, allocations: 4 kB / 0.604 GB, free: 7.016 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004116/0.4164, allocations: 117 kB / 0.6041 GB, free: 6.902 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.4164, allocations: 4 kB / 0.6041 GB, free: 6.898 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002785/0.4167, allocations: 60.91 kB / 0.6041 GB, free: 6.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.829e-05/0.4167, allocations: 16 kB / 0.6041 GB, free: 6.824 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.0001762/0.4169, allocations: 211.7 kB / 0.6043 GB, free: 6.609 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.276e-05/0.417, allocations: 56.91 kB / 0.6044 GB, free: 6.555 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001017/0.4171, allocations: 65.58 kB / 0.6045 GB, free: 6.492 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.4171, allocations: 11.94 kB / 0.6045 GB, free: 6.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.4171, allocations: 0.7812 kB / 0.6045 GB, free: 6.48 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.4171, allocations: 3.984 kB / 0.6045 GB, free: 6.477 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001248/0.4184, allocations: 1.179 MB / 0.6056 GB, free: 5.242 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.4184, allocations: 0.5938 kB / 0.6056 GB, free: 5.242 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003997/0.4188, allocations: 92.95 kB / 0.6057 GB, free: 5.152 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.4188, allocations: 4 kB / 0.6057 GB, free: 5.148 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.611e-05/0.4188, allocations: 12.48 kB / 0.6057 GB, free: 5.137 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.4188, allocations: 5.969 kB / 0.6057 GB, free: 5.133 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.4188, allocations: 0 / 0.6057 GB, free: 5.133 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001019/0.4199, allocations: 0.758 MB / 0.6065 GB, free: 4.359 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.42, allocations: 168.3 kB / 0.6066 GB, free: 4.176 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.595e-05/0.4201, allocations: 12.94 kB / 0.6067 GB, free: 4.164 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002586/0.4203, allocations: 29.44 kB / 0.6067 GB, free: 4.137 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.854e-05/0.4204, allocations: 36.33 kB / 0.6067 GB, free: 4.102 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.103e-05/0.4204, allocations: 12 kB / 0.6067 GB, free: 4.09 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002319/0.4207, allocations: 312.2 kB / 0.607 GB, free: 3.789 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4207, allocations: 0 / 0.607 GB, free: 3.789 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003523/0.421, allocations: 143.5 kB / 0.6072 GB, free: 3.648 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.805e-05/0.4211, allocations: 113.4 kB / 0.6073 GB, free: 3.535 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0008676/0.422, allocations: 0.4927 MB / 0.6077 GB, free: 3.031 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.422, allocations: 0 / 0.6077 GB, free: 3.031 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003242/0.4224, allocations: 214.9 kB / 0.608 GB, free: 2.82 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006467/0.423, allocations: 161.4 kB / 0.6081 GB, free: 2.672 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002077/0.4251, allocations: 1.385 MB / 0.6095 GB, free: 1.262 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/0.4254, allocations: 0.8936 MB / 0.6103 GB, free: 352 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.4255, allocations: 43.44 kB / 0.6104 GB, free: 308 kB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4255, allocations: 7.938 kB / 0.6104 GB, free: 300 kB / 446.1 MB Notification: Performance of Templates: time 0.01088/0.4364, allocations: 7.607 MB / 0.6178 GB, free: 8.723 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 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)