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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Digital.Examples.TestPID,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Digital_Examples_TestPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Digital.Examples.TestPID,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Digital_Examples_TestPID",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.005523/0.005523, allocations: 184.5 kB / 7.457 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06236/0.06236, allocations: 10.59 MB / 18.46 MB, free: 2.172 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.63/1.63, allocations: 205.2 MB / 226.5 MB, free: 0.5 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009084/0.0009084, allocations: 88.61 kB / 276.9 MB, free: 1.809 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1312/0.1322, allocations: 56.13 MB / 333 MB, free: 9.617 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3006/0.4328, allocations: 49.99 MB / 383 MB, free: 39.26 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1215/0.5544, allocations: 83.08 MB / 466.1 MB, free: 4.852 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004197/0.5549, allocations: 88.84 kB / 466.2 MB, free: 4.766 MB / 346.7 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.07686/0.6318, allocations: 23.18 MB / 489.4 MB, free: 13.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.449e-05/0.6319, allocations: 8 kB / 489.4 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005916/0.6325, allocations: 116.4 kB / 489.5 MB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002211/0.6347, allocations: 0.6728 MB / 490.2 MB, free: 12.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.05e-05/0.6348, allocations: 20 kB / 490.2 MB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002028/0.635, allocations: 35.98 kB / 490.2 MB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001112/0.6361, allocations: 369.6 kB / 490.6 MB, free: 12.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/0.6374, allocations: 0.55 MB / 491.1 MB, free: 11.63 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.342e-05/0.6374, allocations: 0 / 491.1 MB, free: 11.63 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.409e-05/0.6375, allocations: 8 kB / 491.1 MB, free: 11.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.762e-05/0.6375, allocations: 11.91 kB / 491.1 MB, free: 11.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004675/0.6422, allocations: 1.576 MB / 492.7 MB, free: 9.988 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/0.6433, allocations: 0.6161 MB / 493.3 MB, free: 9.363 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006386/0.6439, allocations: 0.5449 MB / 493.9 MB, free: 8.816 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.961e-05/0.644, allocations: 4 kB / 493.9 MB, free: 8.812 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006677/0.6446, allocations: 464.2 kB / 494.3 MB, free: 8.328 MB / 378.7 MB Notification: Performance of pre-optimization done (n=65): time 3.587e-06/0.6447, allocations: 0.5625 kB / 494.3 MB, free: 8.328 MB / 378.7 MB Notification: Performance of matching and sorting (n=65): time 0.00148/0.6461, allocations: 0.6486 MB / 495 MB, free: 7.672 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002674/0.6464, allocations: 293.5 kB / 495.3 MB, free: 7.324 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001187/0.6476, allocations: 0.7186 MB / 496 MB, free: 6.602 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.126e-05/0.6477, allocations: 33.7 kB / 496 MB, free: 6.562 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000272/0.648, allocations: 221.2 kB / 496.2 MB, free: 6.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001822/0.6482, allocations: 175 kB / 496.4 MB, free: 6.168 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.065e-05/0.6482, allocations: 15.94 kB / 496.4 MB, free: 6.152 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002072/0.6484, allocations: 337.8 kB / 496.8 MB, free: 5.816 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003705/0.6488, allocations: 201.4 kB / 497 MB, free: 5.621 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006657/0.6495, allocations: 465.7 kB / 497.4 MB, free: 5.055 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005933/0.6501, allocations: 258.1 kB / 497.7 MB, free: 4.805 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.027e-06/0.6501, allocations: 4 kB / 497.7 MB, free: 4.801 MB / 378.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001492/0.6516, allocations: 0.7579 MB / 498.4 MB, free: 4.035 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.104e-05/0.6516, allocations: 4 kB / 498.4 MB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-05/0.6517, allocations: 8 kB / 498.4 MB, free: 4.023 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.796e-05/0.6517, allocations: 12 kB / 498.4 MB, free: 4.012 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005987/0.6523, allocations: 127.8 kB / 498.6 MB, free: 3.887 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.589e-05/0.6524, allocations: 12 kB / 498.6 MB, free: 3.875 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004712/0.6528, allocations: 71.56 kB / 498.7 MB, free: 3.805 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.333e-05/0.6529, allocations: 43.98 kB / 498.7 MB, free: 3.762 MB / 378.7 MB Warning: Assuming fixed start value for the following 19 variables: Controller.satLOW:DISCRETE(fixed = false ) "The CS signal saturated at CSmin" type: Boolean Controller.satHI:DISCRETE(fixed = false ) "The CS signal saturated at CSmax" type: Boolean Controller.cs:DISCRETE(fixed = false protected = true ) type: Real Controller.dcs:DISCRETE(fixed = false protected = true ) type: Real Controller.dd:DISCRETE(fixed = false protected = true ) type: Real Controller.d:DISCRETE(fixed = false protected = true ) type: Real Controller.di:DISCRETE(fixed = false protected = true ) type: Real Controller.dp:DISCRETE(fixed = false protected = true ) type: Real Controller.dpv:DISCRETE(fixed = false protected = true ) type: Real Controller.dsp:DISCRETE(fixed = false protected = true ) type: Real Controller.pv:DISCRETE(fixed = false protected = true ) type: Real Controller.sp:DISCRETE(fixed = false protected = true ) type: Real Process.w:VARIABLE(protected = true ) "proper part of the output" type: Real Controller.CS:DISCRETE(fixed = false ) "Control signal" type: Real Process.Y[3]:VARIABLE(protected = true ) type: Real [3] Process.U[2]:VARIABLE(protected = true ) type: Real [2] ProcessNoControl.w:VARIABLE(protected = true ) "proper part of the output" type: Real ProcessNoControl.Y[3]:VARIABLE(protected = true ) type: Real [3] ProcessNoControl.U[2]:VARIABLE(protected = true ) type: Real [2] 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,$whenCondition7,$PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition6,$PRE.ForbinINC.combiTimeTable.nextTimeEvent,$whenCondition5,$PRE.ForbinDEC.combiTimeTable.nextTimeEvent,$whenCondition4,$PRE.man.combiTimeTable.nextTimeEvent,$whenCondition3,deltaCS.a,deltaCS.b,deltaCS.last,$PRE.deltaCS.nextEvent,deltaCS.nextEvent,deltaCS.nextEventScaled,Controller.MAN,man.combiTimeTable.nextTimeEvent,$PRE.man.combiTimeTable.nextTimeEventScaled,man.combiTimeTable.nextTimeEventScaled,Controller.Fdec,ForbinDEC.combiTimeTable.nextTimeEvent,$PRE.ForbinDEC.combiTimeTable.nextTimeEventScaled,ForbinDEC.combiTimeTable.nextTimeEventScaled,Controller.Finc,ForbinINC.combiTimeTable.nextTimeEvent,$PRE.ForbinINC.combiTimeTable.nextTimeEventScaled,ForbinINC.combiTimeTable.nextTimeEventScaled,$whenCondition2,TrackRef.a,TrackRef.b,TrackRef.last,$PRE.TrackRef.nextEvent,TrackRef.nextEvent,TrackRef.nextEventScaled,Controller.TS,TSsignal.combiTimeTable.nextTimeEvent,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEventScaled,$PRE.Controller.CS,Controller.CS,$whenCondition1) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005353/0.6535, allocations: 302.2 kB / 499 MB, free: 3.445 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001586/0.6536, allocations: 98.88 kB / 499.1 MB, free: 3.348 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001471/0.6551, allocations: 0.7368 MB / 499.8 MB, free: 2.598 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.6551, allocations: 8 kB / 499.8 MB, free: 2.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.6552, allocations: 0 / 499.8 MB, free: 2.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/0.6552, allocations: 7.922 kB / 499.8 MB, free: 2.582 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001094/0.6563, allocations: 0.6346 MB / 0.4887 GB, free: 1.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.6563, allocations: 0 / 0.4887 GB, free: 1.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000398/0.6567, allocations: 63.91 kB / 0.4888 GB, free: 1.848 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.371e-05/0.6567, allocations: 7.906 kB / 0.4888 GB, free: 1.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.558e-05/0.6568, allocations: 31.97 kB / 0.4888 GB, free: 1.809 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.6568, allocations: 0 / 0.4888 GB, free: 1.809 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.6568, allocations: 0 / 0.4888 GB, free: 1.809 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002069/0.6589, allocations: 1.126 MB / 0.4899 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2395/0.8985, allocations: 1.892 MB / 0.4918 GB, free: 135.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004168/0.899, allocations: 182.3 kB / 0.492 GB, free: 135.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002096/0.8992, allocations: 32.61 kB / 0.492 GB, free: 135.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004909/0.8997, allocations: 49.22 kB / 0.492 GB, free: 135.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.8998, allocations: 42.45 kB / 0.4921 GB, free: 135.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001201/0.8999, allocations: 39.45 kB / 0.4921 GB, free: 135.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0007919/0.9007, allocations: 0.5409 MB / 0.4926 GB, free: 135.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001684/0.9024, allocations: 228.3 kB / 0.4929 GB, free: 135.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Process.Y[3],Process.U[2],Process.w,ProcessNoControl.Y[3],ProcessNoControl.U[2],ProcessNoControl.w) * Number of discrete variables: 42 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition1,$whenCondition2,$whenCondition3,Controller.CS,Controller.satHI,Controller.satLOW,Controller.sp,Controller.dsp,Controller.pv,Controller.dpv,Controller.dp,Controller.di,Controller.d,Controller.dd,Controller.cs,Controller.dcs,Controller.TS,Controller.MAN,Controller.Finc,Controller.Fdec,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,TrackRef.nextEvent,TrackRef.nextEventScaled,ForbinINC.combiTimeTable.nextTimeEvent,ForbinINC.combiTimeTable.nextTimeEventScaled,ForbinDEC.combiTimeTable.nextTimeEvent,ForbinDEC.combiTimeTable.nextTimeEventScaled,man.combiTimeTable.nextTimeEvent,man.combiTimeTable.nextTimeEventScaled,deltaCS.a,deltaCS.b,deltaCS.last,deltaCS.nextEvent,deltaCS.nextEventScaled) * Number of discrete states: 35 (Controller.CS,Controller.satLOW,Controller.satHI,Controller.cs,Controller.dcs,Controller.dd,Controller.d,Controller.di,Controller.dp,Controller.dpv,Controller.dsp,Controller.pv,Controller.sp,$whenCondition1,Controller.bias,TrackRef.nextEvent,TrackRef.last,TrackRef.nextEventScaled,TrackRef.b,TrackRef.a,$whenCondition2,deltaCS.nextEvent,deltaCS.last,deltaCS.nextEventScaled,deltaCS.b,deltaCS.a,$whenCondition3,man.combiTimeTable.nextTimeEvent,ForbinDEC.combiTimeTable.nextTimeEvent,ForbinINC.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEvent,man.combiTimeTable.nextTimeEventScaled,ForbinDEC.combiTimeTable.nextTimeEventScaled,ForbinINC.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001216/0.9037, allocations: 443.4 kB / 0.4933 GB, free: 135.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.9048, allocations: 0.6895 MB / 0.494 GB, free: 135.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.9048, allocations: 1.406 kB / 0.494 GB, free: 135.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008183/0.9057, allocations: 0.9255 MB / 0.4949 GB, free: 135.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007732/0.9064, allocations: 132.8 kB / 0.495 GB, free: 135.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002523/0.909, allocations: 1.202 MB / 0.4962 GB, free: 135.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007229/0.9097, allocations: 1.093 MB / 0.4972 GB, free: 134.3 MB / 378.7 MB Notification: Performance of SimCode: time 8.02e-07/0.9097, allocations: 0 / 0.4972 GB, free: 134.3 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Digital_Examples_TestPID_fmu --startTime=0 --stopTime=340 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Digital_Examples_TestPID.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID.pipe 2>&1)