Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Annex60.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis") translateModel(Annex60.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001179, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001097/0.001098, allocations: 191.2 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.571/1.571, allocations: 205.1 MB / 222.1 MB, free: 4.727 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4253/0.4253, allocations: 54.93 MB / 324.4 MB, free: 100 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 67.91 kB / 394.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1686/0.17, allocations: 59.58 MB / 454.5 MB, free: 464 kB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Controls.Continuous.Examples.PIDHysteresis): time 0.3062/0.4762, allocations: 3 MB / 457.5 MB, free: 38.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001821/0.4781, allocations: 0.9705 MB / 458.5 MB, free: 38.01 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000286/0.4784, allocations: 16.56 kB / 458.5 MB, free: 38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002807/0.4788, allocations: 46.73 kB / 458.5 MB, free: 38 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002127/0.4791, allocations: 76.64 kB / 458.6 MB, free: 37.99 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005994/0.4797, allocations: 215.7 kB / 458.8 MB, free: 37.97 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005382/0.4802, allocations: 0.4968 MB / 459.3 MB, free: 37.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004388/0.4807, allocations: 223.8 kB / 459.5 MB, free: 37.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002319/0.4809, allocations: 176.9 kB / 459.7 MB, free: 37.89 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002038/0.4811, allocations: 182.9 kB / 459.9 MB, free: 37.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.973e-05/0.4812, allocations: 45.34 kB / 459.9 MB, free: 37.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.66e-05/0.4813, allocations: 41.44 kB / 460 MB, free: 37.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.195e-05/0.4813, allocations: 96.23 kB / 460 MB, free: 37.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001633/0.4815, allocations: 210.3 kB / 460.3 MB, free: 37.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004597/0.482, allocations: 487.9 kB / 460.7 MB, free: 37.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.482, allocations: 0 / 460.7 MB, free: 37.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.482, allocations: 3.938 kB / 460.7 MB, free: 37.62 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.408e-06/0.482, allocations: 0.625 kB / 460.7 MB, free: 37.62 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001053/0.4831, allocations: 0.7227 MB / 461.5 MB, free: 37.06 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.4831, allocations: 8.344 kB / 461.5 MB, free: 37.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.106e-05/0.4832, allocations: 50.8 kB / 461.5 MB, free: 37.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004976/0.4837, allocations: 396.2 kB / 461.9 MB, free: 36.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.715e-05/0.4838, allocations: 27.98 kB / 461.9 MB, free: 36.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.887e-05/0.4838, allocations: 29.66 kB / 462 MB, free: 36.7 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005049/0.4843, allocations: 345.5 kB / 462.3 MB, free: 36.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.4844, allocations: 1.344 kB / 462.3 MB, free: 36.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.062e-05/0.4844, allocations: 11.72 kB / 462.3 MB, free: 36.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.4844, allocations: 8.75 kB / 462.3 MB, free: 36.51 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004224/0.4848, allocations: 216.6 kB / 462.5 MB, free: 36.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001276/0.4861, allocations: 1.198 MB / 463.7 MB, free: 35.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005091/0.4866, allocations: 236.3 kB / 464 MB, free: 35.49 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001993/0.4869, allocations: 114.5 kB / 464.1 MB, free: 35.44 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.536e-05/0.4869, allocations: 4.562 kB / 464.1 MB, free: 35.44 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.801e-05/0.4869, allocations: 34.5 kB / 464.1 MB, free: 35.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 1.483e-06/0.4869, allocations: 0.5625 kB / 464.1 MB, free: 35.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006003/0.4875, allocations: 295 kB / 464.4 MB, free: 35.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.773e-05/0.4876, allocations: 109.2 kB / 464.5 MB, free: 35.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002853/0.4879, allocations: 341.2 kB / 464.8 MB, free: 34.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.4879, allocations: 29.7 kB / 464.9 MB, free: 34.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.4881, allocations: 225.7 kB / 465.1 MB, free: 34.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.029e-05/0.4881, allocations: 81.47 kB / 465.2 MB, free: 34.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.33e-05/0.4882, allocations: 53.77 kB / 465.2 MB, free: 34.65 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.4883, allocations: 342.4 kB / 465.6 MB, free: 34.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.4885, allocations: 88.52 kB / 465.6 MB, free: 34.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002113/0.4887, allocations: 143.3 kB / 465.8 MB, free: 34.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003457/0.4891, allocations: 219.9 kB / 466 MB, free: 34.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.4891, allocations: 3.938 kB / 466 MB, free: 34.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004639/0.4895, allocations: 286.2 kB / 466.3 MB, free: 33.91 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.4896, allocations: 7.438 kB / 466.3 MB, free: 33.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.4896, allocations: 0 / 466.3 MB, free: 33.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/0.4896, allocations: 3.844 kB / 466.3 MB, free: 33.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002258/0.4899, allocations: 55.17 kB / 466.3 MB, free: 33.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.4899, allocations: 6.188 kB / 466.3 MB, free: 33.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001809/0.4901, allocations: 38.89 kB / 466.4 MB, free: 33.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.046e-05/0.4901, allocations: 5.812 kB / 466.4 MB, free: 33.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002308/0.4903, allocations: 196 kB / 466.6 MB, free: 33.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001661/0.4905, allocations: 142 kB / 466.7 MB, free: 33.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002746/0.4908, allocations: 202.5 kB / 466.9 MB, free: 33.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.403e-06/0.4908, allocations: 4.031 kB / 466.9 MB, free: 33.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization_lambda0): time 0.0003889/0.4912, allocations: 279.3 kB / 467.2 MB, free: 33.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.624e-06/0.4912, allocations: 3.156 kB / 467.2 MB, free: 33.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.4912, allocations: 3.719 kB / 467.2 MB, free: 33.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.606e-06/0.4912, allocations: 4.219 kB / 467.2 MB, free: 33.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000183/0.4914, allocations: 48.89 kB / 467.3 MB, free: 33.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.361e-06/0.4914, allocations: 3.859 kB / 467.3 MB, free: 33.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.4916, allocations: 39.88 kB / 467.3 MB, free: 33.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.4916, allocations: 10.5 kB / 467.3 MB, free: 33.34 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 (con.hys.y,$PRE.con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * 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.0001542/0.4918, allocations: 198.1 kB / 467.5 MB, free: 33.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.178e-05/0.4919, allocations: 35.34 kB / 467.5 MB, free: 33.12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001035/0.492, allocations: 41.36 kB / 467.6 MB, free: 33.1 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.492, allocations: 2.781 kB / 467.6 MB, free: 33.1 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.492, allocations: 4 kB / 467.6 MB, free: 33.1 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.492, allocations: 5.062 kB / 467.6 MB, free: 33.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003726/0.4924, allocations: 396.2 kB / 468 MB, free: 32.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4924, allocations: 0 / 468 MB, free: 32.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002062/0.4926, allocations: 44.06 kB / 468 MB, free: 32.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.4926, allocations: 1.641 kB / 468 MB, free: 32.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.055e-05/0.4927, allocations: 6.688 kB / 468 MB, free: 32.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.4927, allocations: 0 / 468 MB, free: 32.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.4927, allocations: 3.781 kB / 468 MB, free: 32.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005955/0.4933, allocations: 425.2 kB / 468.4 MB, free: 32.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.783e-05/0.4934, allocations: 125.8 kB / 468.6 MB, free: 32.42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.183e-05/0.4934, allocations: 10.22 kB / 468.6 MB, free: 32.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001709/0.4936, allocations: 22.42 kB / 468.6 MB, free: 32.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.485e-05/0.4937, allocations: 22.53 kB / 468.6 MB, free: 32.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-05/0.4937, allocations: 6.812 kB / 468.6 MB, free: 32.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001971/0.4939, allocations: 241.9 kB / 468.9 MB, free: 32.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4939, allocations: 3.938 kB / 468.9 MB, free: 32.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004188/0.4943, allocations: 121.6 kB / 469 MB, free: 32.23 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001066/0.4944, allocations: 103.8 kB / 469.1 MB, free: 32.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005739/0.495, allocations: 327.8 kB / 469.4 MB, free: 32.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.495, allocations: 0 / 469.4 MB, free: 32.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001637/0.4952, allocations: 101.2 kB / 469.5 MB, free: 31.99 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005454/0.4958, allocations: 94.89 kB / 469.6 MB, free: 31.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001246/0.497, allocations: 0.8466 MB / 470.4 MB, free: 31.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000225/0.4972, allocations: 0.7928 MB / 471.2 MB, free: 30.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001862/0.4974, allocations: 42.62 kB / 471.3 MB, free: 30.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.787e-05/0.4975, allocations: 30.72 kB / 471.3 MB, free: 30.69 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4975, allocations: 0 / 471.3 MB, free: 30.69 MB / 382.1 MB Notification: Performance of Templates: time 0.00683/0.5044, allocations: 3.366 MB / 474.7 MB, free: 30.48 MB / 382.1 MB make -j1 -f Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.sim & ./Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)