Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID.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/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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(IndustrialControlSystems.Controllers.Digital.Examples.TestPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID") translateModel(IndustrialControlSystems.Controllers.Digital.Examples.TestPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 111.2 kB / 16.42 MB, free: 6.496 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.001085/0.001086, allocations: 188.3 kB / 17.35 MB, free: 5.758 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.277/1.277, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05912/0.05912, allocations: 10.74 MB / 281.3 MB, free: 1.305 MB / 222.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: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 75.62 kB / 391.5 MB, free: 45.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06786/0.06936, allocations: 49.03 MB / 440.6 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Digital.Examples.TestPID): time 0.00339/0.07278, allocations: 3.06 MB / 443.6 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002687/0.07548, allocations: 1.907 MB / 445.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002247/0.07572, allocations: 11.94 kB / 445.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001252/0.07699, allocations: 0.5947 MB / 446.1 MB, free: 14.23 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0008205/0.07782, allocations: 458.2 kB / 446.6 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001612/0.07945, allocations: 0.7508 MB / 447.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001059/0.08052, allocations: 1.111 MB / 448.4 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000269/0.0808, allocations: 177.4 kB / 448.6 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000449/0.08125, allocations: 442.4 kB / 449 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005033/0.08177, allocations: 478.1 kB / 449.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001077/0.08189, allocations: 63.94 kB / 449.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004643/0.08236, allocations: 311.6 kB / 449.9 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002276/0.0826, allocations: 227.2 kB / 450.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003422/0.08295, allocations: 417.5 kB / 450.5 MB, free: 9.836 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001005/0.08396, allocations: 1.023 MB / 451.5 MB, free: 8.809 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.08397, allocations: 0 / 451.5 MB, free: 8.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.08398, allocations: 0 / 451.5 MB, free: 8.809 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.08399, allocations: 0 / 451.5 MB, free: 8.809 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.001844/0.08584, allocations: 1.442 MB / 453 MB, free: 7.266 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.08588, allocations: 11.89 kB / 453 MB, free: 7.254 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001611/0.08605, allocations: 108.3 kB / 453.1 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008295/0.08689, allocations: 0.6457 MB / 453.7 MB, free: 6.461 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.841e-05/0.08694, allocations: 33.38 kB / 453.8 MB, free: 6.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.987e-05/0.08703, allocations: 56.08 kB / 453.8 MB, free: 6.375 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009969/0.08804, allocations: 0.5865 MB / 454.4 MB, free: 5.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.273e-05/0.08807, allocations: 4 kB / 454.4 MB, free: 5.766 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.886e-05/0.08813, allocations: 19.94 kB / 454.4 MB, free: 5.746 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.08814, allocations: 8 kB / 454.4 MB, free: 5.738 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007797/0.08893, allocations: 403.7 kB / 454.8 MB, free: 5.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002317/0.09125, allocations: 1.475 MB / 456.3 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00107/0.09234, allocations: 0.6986 MB / 457 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006467/0.093, allocations: 0.5606 MB / 457.6 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.928e-05/0.09305, allocations: 7.75 kB / 457.6 MB, free: 2.523 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007383/0.09379, allocations: 499.2 kB / 458.1 MB, free: 2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=65): time 2.234e-06/0.09381, allocations: 0 / 458.1 MB, free: 2 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.002117/0.09593, allocations: 1.227 MB / 459.3 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000132/0.09607, allocations: 301.5 kB / 459.6 MB, free: 408 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009547/0.09704, allocations: 0.872 MB / 460.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.961e-05/0.09709, allocations: 49.69 kB / 460.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000261/0.09736, allocations: 365.5 kB / 460.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001371/0.09751, allocations: 186.5 kB / 461 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001731/0.09769, allocations: 130.2 kB / 461.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.0978, allocations: 338 kB / 461.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004088/0.09822, allocations: 217.4 kB / 461.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005655/0.09879, allocations: 479.8 kB / 462.2 MB, free: 13.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001655/0.1005, allocations: 1.057 MB / 463.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.1005, allocations: 0 / 463.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001474/0.102, allocations: 0.9663 MB / 464.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.657e-05/0.102, allocations: 97.75 kB / 464.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.1021, allocations: 11.94 kB / 464.3 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.191e-05/0.1021, allocations: 12 kB / 464.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004541/0.1025, allocations: 131.7 kB / 464.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.809e-05/0.1026, allocations: 12 kB / 464.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003752/0.103, allocations: 87.48 kB / 464.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.404e-05/0.103, allocations: 35.98 kB / 464.6 MB, free: 11.07 MB / 350.1 MB Warning: Assuming fixed start value for the following 19 variables: Controller.satLOW:DISCRETE(flow=false fixed = true ) "The CS signal saturated at CSmin" type: Boolean Controller.satHI:DISCRETE(flow=false fixed = true ) "The CS signal saturated at CSmax" type: Boolean Controller.cs:DISCRETE(fixed = true protected = true ) type: Real Controller.dcs:DISCRETE(fixed = true protected = true ) type: Real Controller.dd:DISCRETE(fixed = true protected = true ) type: Real Controller.d:DISCRETE(fixed = true protected = true ) type: Real Controller.di:DISCRETE(fixed = true protected = true ) type: Real Controller.dp:DISCRETE(fixed = true protected = true ) type: Real Controller.dpv:DISCRETE(fixed = true protected = true ) type: Real Controller.dsp:DISCRETE(fixed = true protected = true ) type: Real Controller.pv:DISCRETE(fixed = true protected = true ) type: Real Controller.sp:DISCRETE(fixed = true protected = true ) type: Real Process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real Process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] Process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Controller.CS:DISCRETE(flow=false fixed = true ) "Control signal" type: Real ProcessNoControl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessNoControl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] ProcessNoControl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 65 ($PRE.Controller.satLOW,Controller.satLOW,$PRE.Controller.satHI,Controller.satHI,$PRE.Controller.cs,Controller.cs,$PRE.Controller.dcs,Controller.dcs,$PRE.Controller.dd,Controller.dd,$PRE.Controller.d,Controller.d,$PRE.Controller.di,Controller.di,$PRE.Controller.dp,Controller.dp,$PRE.Controller.dpv,Controller.dpv,$PRE.Controller.dsp,Controller.dsp,$PRE.Controller.pv,Controller.pv,$PRE.Controller.sp,Controller.sp,$PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition7,$PRE.ForbinINC.combiTimeTable.nextTimeEvent,$whenCondition6,$PRE.ForbinDEC.combiTimeTable.nextTimeEvent,$whenCondition5,$PRE.man.combiTimeTable.nextTimeEvent,$whenCondition4,man.combiTimeTable.nextTimeEventScaled,$PRE.man.combiTimeTable.nextTimeEventScaled,man.combiTimeTable.nextTimeEvent,Controller.man,ForbinDEC.combiTimeTable.nextTimeEventScaled,$PRE.ForbinDEC.combiTimeTable.nextTimeEventScaled,ForbinDEC.combiTimeTable.nextTimeEvent,Controller.F_dec,ForbinINC.combiTimeTable.nextTimeEventScaled,$PRE.ForbinINC.combiTimeTable.nextTimeEventScaled,ForbinINC.combiTimeTable.nextTimeEvent,Controller.F_inc,TSsignal.combiTimeTable.nextTimeEventScaled,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent,Controller.ts,$PRE.Controller.CS,Controller.CS,deltaCS.nextEventScaled,deltaCS.nextEvent,$PRE.deltaCS.nextEvent,deltaCS.last,deltaCS.b,deltaCS.a,$whenCondition3,TrackRef.nextEventScaled,TrackRef.nextEvent,$PRE.TrackRef.nextEvent,TrackRef.last,TrackRef.b,TrackRef.a,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 3 * 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.0004904/0.1035, allocations: 454.6 kB / 465 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/0.1037, allocations: 107.4 kB / 465.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001478/0.1038, allocations: 88.33 kB / 465.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.1038, allocations: 3.984 kB / 465.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1038, allocations: 0 / 465.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001322/0.104, allocations: 168.3 kB / 465.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000142/0.1041, allocations: 32 kB / 465.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003544/0.1045, allocations: 52.02 kB / 465.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.1046, allocations: 39.89 kB / 465.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002073/0.1067, allocations: 1.312 MB / 466.8 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002489/0.1092, allocations: 1.643 MB / 468.5 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008446/0.11, allocations: 0.8283 MB / 469.3 MB, free: 6.219 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006892/0.1107, allocations: 0.6083 MB / 469.9 MB, free: 5.613 MB / 350.1 MB Notification: Performance of Backend: time 3.71e-07/0.1108, allocations: 0 / 469.9 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002269/0.113, allocations: 1.117 MB / 471 MB, free: 4.566 MB / 350.1 MB Notification: Performance of SimCode: time 0.002246/0.1153, allocations: 2.055 MB / 473.1 MB, free: 2.426 MB / 350.1 MB Notification: Performance of Templates: time 0.01817/0.1335, allocations: 11.41 MB / 484.5 MB, free: 7.016 MB / 366.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID.pipe 2>&1)