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.001345/0.001345, allocations: 106 kB / 16.37 MB, free: 6.477 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.001314/0.001315, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.386/1.386, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8078/0.8078, allocations: 135.1 MB / 426.3 MB, free: 4.125 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 71.88 kB / 0.5067 GB, free: 7.664 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4603/0.4616, allocations: 80.9 MB / 0.5858 GB, free: 25.56 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.005659/0.4673, allocations: 4.104 MB / 0.5898 GB, free: 22.33 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003268/0.4706, allocations: 1.322 MB / 0.5911 GB, free: 21.08 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001063/0.4717, allocations: 24.44 kB / 0.5911 GB, free: 21.06 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005671/0.4724, allocations: 127.3 kB / 0.5912 GB, free: 20.93 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008025/0.4732, allocations: 183.3 kB / 0.5914 GB, free: 20.76 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001027/0.4742, allocations: 408.8 kB / 0.5918 GB, free: 20.36 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001126/0.4754, allocations: 0.9681 MB / 0.5927 GB, free: 19.39 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005293/0.4759, allocations: 454.1 kB / 0.5931 GB, free: 18.93 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002905/0.4762, allocations: 322.8 kB / 0.5934 GB, free: 18.61 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002534/0.4765, allocations: 339.6 kB / 0.5938 GB, free: 18.28 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.176e-05/0.4766, allocations: 92 kB / 0.5939 GB, free: 18.19 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.231e-05/0.4766, allocations: 92 kB / 0.5939 GB, free: 18.1 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001049/0.4768, allocations: 183.9 kB / 0.5941 GB, free: 17.92 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002377/0.477, allocations: 386.1 kB / 0.5945 GB, free: 17.54 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006614/0.4777, allocations: 1.061 MB / 0.5955 GB, free: 16.48 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.4777, allocations: 4 kB / 0.5955 GB, free: 16.48 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.4777, allocations: 0.5 kB / 0.5955 GB, free: 16.48 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.4777, allocations: 1.438 kB / 0.5955 GB, free: 16.48 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.001476/0.4792, allocations: 1.074 MB / 0.5966 GB, free: 15.36 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.4792, allocations: 13.11 kB / 0.5966 GB, free: 15.34 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.4793, allocations: 80 kB / 0.5967 GB, free: 15.27 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006888/0.48, allocations: 0.5683 MB / 0.5972 GB, free: 14.66 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.234e-05/0.4801, allocations: 50.67 kB / 0.5973 GB, free: 14.61 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.577e-05/0.4802, allocations: 60.28 kB / 0.5973 GB, free: 14.55 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008427/0.481, allocations: 0.6064 MB / 0.5979 GB, free: 13.93 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/0.481, allocations: 5.031 kB / 0.5979 GB, free: 13.92 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.624e-05/0.4811, allocations: 27.98 kB / 0.598 GB, free: 13.89 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.4811, allocations: 16 kB / 0.598 GB, free: 13.88 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007895/0.4819, allocations: 459.5 kB / 0.5984 GB, free: 13.43 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00212/0.484, allocations: 1.991 MB / 0.6004 GB, free: 11.38 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007378/0.4848, allocations: 454.8 kB / 0.6008 GB, free: 10.93 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003713/0.4852, allocations: 248 kB / 0.601 GB, free: 10.69 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.952e-05/0.4852, allocations: 4.438 kB / 0.601 GB, free: 10.68 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004231/0.4857, allocations: 263.8 kB / 0.6013 GB, free: 10.42 MB / 446.1 MB Notification: Performance of pre-optimization done (n=49): time 1.773e-06/0.4857, allocations: 0 / 0.6013 GB, free: 10.42 MB / 446.1 MB Notification: Performance of matching and sorting (n=49): time 0.001037/0.4867, allocations: 0.5783 MB / 0.6018 GB, free: 9.836 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.378e-05/0.4867, allocations: 57.41 kB / 0.6019 GB, free: 9.77 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003453/0.4871, allocations: 450 kB / 0.6023 GB, free: 9.32 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.957e-05/0.4871, allocations: 33.7 kB / 0.6024 GB, free: 9.281 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001535/0.4873, allocations: 326.1 kB / 0.6027 GB, free: 8.961 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.073e-05/0.4874, allocations: 169.6 kB / 0.6028 GB, free: 8.793 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.4875, allocations: 90.25 kB / 0.6029 GB, free: 8.699 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.057e-05/0.4876, allocations: 367.7 kB / 0.6033 GB, free: 8.332 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003216/0.4879, allocations: 166.1 kB / 0.6034 GB, free: 8.168 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003369/0.4883, allocations: 248.5 kB / 0.6037 GB, free: 7.902 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006366/0.4889, allocations: 453.2 kB / 0.6041 GB, free: 7.43 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4889, allocations: 1.469 kB / 0.6041 GB, free: 7.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008276/0.4898, allocations: 0.5605 MB / 0.6046 GB, free: 6.855 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.305e-05/0.4898, allocations: 42.84 kB / 0.6047 GB, free: 6.809 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.4898, allocations: 4 kB / 0.6047 GB, free: 6.805 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.4898, allocations: 4 kB / 0.6047 GB, free: 6.801 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004378/0.4903, allocations: 112.8 kB / 0.6048 GB, free: 6.691 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.4903, allocations: 4 kB / 0.6048 GB, free: 6.688 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002856/0.4906, allocations: 61.45 kB / 0.6049 GB, free: 6.629 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.669e-05/0.4906, allocations: 23.98 kB / 0.6049 GB, free: 6.605 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.0002096/0.4909, allocations: 214.8 kB / 0.6051 GB, free: 6.391 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.495e-05/0.4909, allocations: 55.28 kB / 0.6051 GB, free: 6.336 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001261/0.491, allocations: 65.58 kB / 0.6052 GB, free: 6.273 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.4911, allocations: 15.92 kB / 0.6052 GB, free: 6.258 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.4911, allocations: 0 / 0.6052 GB, free: 6.258 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.4911, allocations: 0.7188 kB / 0.6052 GB, free: 6.258 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001404/0.4925, allocations: 1.176 MB / 0.6064 GB, free: 5.027 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.4925, allocations: 1 kB / 0.6064 GB, free: 5.027 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004197/0.4929, allocations: 95.88 kB / 0.6065 GB, free: 4.934 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.355e-06/0.493, allocations: 5.406 kB / 0.6065 GB, free: 4.93 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.26e-05/0.493, allocations: 8 kB / 0.6065 GB, free: 4.922 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.493, allocations: 4 kB / 0.6065 GB, free: 4.918 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.493, allocations: 0 / 0.6065 GB, free: 4.918 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.4941, allocations: 0.7641 MB / 0.6072 GB, free: 4.141 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001466/0.4943, allocations: 178.9 kB / 0.6074 GB, free: 3.949 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.911e-05/0.4944, allocations: 8 kB / 0.6074 GB, free: 3.941 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002579/0.4946, allocations: 23.98 kB / 0.6074 GB, free: 3.918 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.11e-05/0.4947, allocations: 36.38 kB / 0.6075 GB, free: 3.883 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.643e-05/0.4948, allocations: 12 kB / 0.6075 GB, free: 3.871 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002835/0.495, allocations: 307.4 kB / 0.6078 GB, free: 3.574 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.495, allocations: 0.625 kB / 0.6078 GB, free: 3.574 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004024/0.4955, allocations: 143.5 kB / 0.6079 GB, free: 3.434 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 0.0001204/0.4956, allocations: 112.7 kB / 0.608 GB, free: 3.316 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0007626/0.4964, allocations: 483.6 kB / 0.6085 GB, free: 2.828 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.4964, allocations: 1.531 kB / 0.6085 GB, free: 2.828 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003353/0.4967, allocations: 218.4 kB / 0.6087 GB, free: 2.617 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006781/0.4974, allocations: 151.1 kB / 0.6088 GB, free: 2.477 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002147/0.4996, allocations: 1.336 MB / 0.6101 GB, free: 1.121 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.4999, allocations: 0.8899 MB / 0.611 GB, free: 208 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002321/0.5001, allocations: 60.59 kB / 0.6111 GB, free: 144 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001115/0.5003, allocations: 43.44 kB / 0.6111 GB, free: 100 kB / 446.1 MB Notification: Performance of SimCode: time 1.463e-06/0.5003, allocations: 0 / 0.6111 GB, free: 100 kB / 446.1 MB Notification: Performance of Templates: time 0.01118/0.5114, allocations: 5.92 MB / 0.6169 GB, free: 10.26 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 cvode -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)