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.001215/0.001215, allocations: 114.4 kB / 16.42 MB, free: 6.016 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.001169/0.001169, allocations: 183.7 kB / 17.35 MB, free: 5.633 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.435/1.435, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05995/0.05995, allocations: 10.73 MB / 281.3 MB, free: 1.301 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.001469/0.001469, allocations: 63.97 kB / 391.5 MB, free: 45.95 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07077/0.07225, allocations: 49.03 MB / 440.5 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Digital.Examples.TestPID): time 0.003468/0.07576, allocations: 3.064 MB / 443.6 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00296/0.07874, allocations: 1.903 MB / 445.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004111/0.07917, allocations: 15.88 kB / 445.5 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001326/0.08054, allocations: 0.5996 MB / 446.1 MB, free: 14.21 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.001035/0.08159, allocations: 446.3 kB / 446.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001862/0.08346, allocations: 0.7509 MB / 447.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001316/0.08479, allocations: 1.13 MB / 448.4 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003116/0.08511, allocations: 173.4 kB / 448.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006429/0.08576, allocations: 450.4 kB / 449.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007264/0.0865, allocations: 478.1 kB / 449.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002207/0.08673, allocations: 60 kB / 449.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005928/0.08733, allocations: 307.7 kB / 449.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002944/0.08764, allocations: 235.2 kB / 450.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000453/0.0881, allocations: 405.5 kB / 450.5 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001187/0.08929, allocations: 1.024 MB / 451.5 MB, free: 8.789 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.08931, allocations: 0 / 451.5 MB, free: 8.789 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.08932, allocations: 0 / 451.5 MB, free: 8.789 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.887e-05/0.08935, allocations: 0 / 451.5 MB, free: 8.789 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.002187/0.09154, allocations: 1.408 MB / 452.9 MB, free: 7.281 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.09159, allocations: 11.89 kB / 452.9 MB, free: 7.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001996/0.0918, allocations: 107.7 kB / 453.1 MB, free: 7.164 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009479/0.09275, allocations: 0.6293 MB / 453.7 MB, free: 6.492 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.272e-05/0.09281, allocations: 37.38 kB / 453.7 MB, free: 6.457 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001132/0.09293, allocations: 52.12 kB / 453.8 MB, free: 6.406 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001022/0.09396, allocations: 0.5903 MB / 454.4 MB, free: 5.797 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.09399, allocations: 0 / 454.4 MB, free: 5.797 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.286e-05/0.09405, allocations: 20 kB / 454.4 MB, free: 5.777 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.09406, allocations: 12 kB / 454.4 MB, free: 5.766 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007577/0.09483, allocations: 399.7 kB / 454.8 MB, free: 5.371 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002459/0.09729, allocations: 1.479 MB / 456.3 MB, free: 3.828 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.09837, allocations: 0.7045 MB / 457 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006377/0.09902, allocations: 0.5606 MB / 457.5 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.195e-05/0.09906, allocations: 11.73 kB / 457.5 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007368/0.09981, allocations: 499.2 kB / 458 MB, free: 2.02 MB / 334.1 MB Notification: Performance of pre-optimization done (n=65): time 2.455e-06/0.09982, allocations: 0 / 458 MB, free: 2.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.002095/0.1019, allocations: 1.222 MB / 459.2 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.1021, allocations: 297.6 kB / 459.5 MB, free: 436 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/0.1031, allocations: 0.8681 MB / 460.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.653e-05/0.1032, allocations: 53.69 kB / 460.5 MB, free: 15.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002754/0.1035, allocations: 365.2 kB / 460.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.1036, allocations: 177.6 kB / 461 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001855/0.1038, allocations: 134.2 kB / 461.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.104, allocations: 334 kB / 461.4 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004206/0.1044, allocations: 213.4 kB / 461.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006008/0.105, allocations: 479.8 kB / 462.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001658/0.1067, allocations: 1.06 MB / 463.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.1067, allocations: 0 / 463.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001574/0.1083, allocations: 0.9655 MB / 464.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.303e-05/0.1084, allocations: 97.09 kB / 464.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.1084, allocations: 7.938 kB / 464.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.247e-05/0.1084, allocations: 12 kB / 464.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004438/0.1089, allocations: 128.4 kB / 464.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.972e-05/0.1089, allocations: 19.94 kB / 464.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004176/0.1093, allocations: 83.34 kB / 464.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.401e-05/0.1094, allocations: 32 kB / 464.5 MB, free: 11.12 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.0005424/0.1099, allocations: 462.8 kB / 465 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.1101, allocations: 106.9 kB / 465.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001519/0.1102, allocations: 88.33 kB / 465.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.1103, allocations: 3.984 kB / 465.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1103, allocations: 0 / 465.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001597/0.1104, allocations: 163.9 kB / 465.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000148/0.1106, allocations: 32 kB / 465.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003571/0.1109, allocations: 43.95 kB / 465.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.1111, allocations: 39.95 kB / 465.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002149/0.1132, allocations: 1.312 MB / 466.7 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002465/0.1157, allocations: 1.638 MB / 468.4 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008727/0.1166, allocations: 0.8244 MB / 469.2 MB, free: 6.273 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008034/0.1174, allocations: 0.6044 MB / 469.8 MB, free: 5.672 MB / 350.1 MB Notification: Performance of Backend: time 7.82e-07/0.1174, allocations: 0 / 469.8 MB, free: 5.672 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002361/0.1198, allocations: 1.135 MB / 471 MB, free: 4.613 MB / 350.1 MB Notification: Performance of SimCode: time 0.002681/0.1225, allocations: 2.02 MB / 473 MB, free: 2.508 MB / 350.1 MB Notification: Performance of Templates: time 0.01905/0.1415, allocations: 11.4 MB / 484.4 MB, free: 7.113 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)