Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.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/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.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(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00187/0.00187, allocations: 109.3 kB / 15.99 MB, free: 6.359 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.00214/0.00214, allocations: 194.5 kB / 16.91 MB, free: 6.195 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.466/1.466, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06753/0.06753, allocations: 11.21 MB / 301.9 MB, free: 4.309 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002932/0.002932, allocations: 56.09 kB / 364.8 MB, free: 5.445 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2053/0.2083, allocations: 51.97 MB / 416.7 MB, free: 22.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.003267/0.2116, allocations: 2.486 MB / 419.2 MB, free: 20.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002102/0.2138, allocations: 1.512 MB / 420.7 MB, free: 18.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002405/0.214, allocations: 15.81 kB / 420.7 MB, free: 18.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006358/0.2147, allocations: 204.5 kB / 420.9 MB, free: 18.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003111/0.215, allocations: 145.8 kB / 421.1 MB, free: 18.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008531/0.2159, allocations: 409.8 kB / 421.5 MB, free: 18.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004369/0.2163, allocations: 0.6284 MB / 422.1 MB, free: 17.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001538/0.2165, allocations: 89.3 kB / 422.2 MB, free: 17.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001994/0.2167, allocations: 243 kB / 422.4 MB, free: 17.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002182/0.2169, allocations: 258.9 kB / 422.7 MB, free: 16.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.895e-05/0.217, allocations: 32 kB / 422.7 MB, free: 16.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000192/0.2172, allocations: 147.9 kB / 422.9 MB, free: 16.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001147/0.2173, allocations: 155.4 kB / 423 MB, free: 16.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.2175, allocations: 222.6 kB / 423.2 MB, free: 16.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000342/0.2178, allocations: 425.3 kB / 423.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2178, allocations: 0 / 423.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2178, allocations: 0 / 423.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.761e-05/0.2179, allocations: 4 kB / 423.7 MB, free: 15.91 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001188/0.2191, allocations: 0.9197 MB / 424.6 MB, free: 14.92 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.2191, allocations: 15.89 kB / 424.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.531e-05/0.2192, allocations: 60.19 kB / 424.7 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004416/0.2196, allocations: 454.6 kB / 425.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.297e-05/0.2197, allocations: 33.36 kB / 425.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.935e-05/0.2197, allocations: 44.03 kB / 425.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005928/0.2203, allocations: 484.2 kB / 425.6 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.28e-05/0.2204, allocations: 4 kB / 425.6 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.28e-05/0.2204, allocations: 12 kB / 425.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.2204, allocations: 12 kB / 425.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004627/0.2209, allocations: 318.3 kB / 426 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001894/0.2228, allocations: 1.931 MB / 427.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003668/0.2232, allocations: 246.9 kB / 428.2 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002006/0.2234, allocations: 153.3 kB / 428.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.898e-05/0.2234, allocations: 4.234 kB / 428.3 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003308/0.2238, allocations: 240 kB / 428.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.134e-06/0.2238, allocations: 0 / 428.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.0008441/0.2246, allocations: 0.5404 MB / 429.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.556e-05/0.2247, allocations: 122.8 kB / 429.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004507/0.2252, allocations: 0.5455 MB / 429.7 MB, free: 9.504 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.738e-05/0.2252, allocations: 29.7 kB / 429.8 MB, free: 9.469 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.2253, allocations: 287.8 kB / 430.1 MB, free: 9.184 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.237e-05/0.2254, allocations: 114.4 kB / 430.2 MB, free: 9.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.2255, allocations: 110 kB / 430.3 MB, free: 8.957 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.351e-05/0.2256, allocations: 362.8 kB / 430.6 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002127/0.2258, allocations: 144.9 kB / 430.8 MB, free: 8.453 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002886/0.2261, allocations: 321.6 kB / 431.1 MB, free: 8.066 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001569/0.2277, allocations: 0.9331 MB / 432 MB, free: 7.039 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.2277, allocations: 7.938 kB / 432 MB, free: 7.031 MB / 302.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0007973/0.2285, allocations: 0.6552 MB / 432.7 MB, free: 6.363 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.4e-05/0.2286, allocations: 37.7 kB / 432.7 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.2286, allocations: 7.984 kB / 432.7 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.2286, allocations: 8 kB / 432.7 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003901/0.229, allocations: 107.8 kB / 432.8 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.229, allocations: 11.98 kB / 432.9 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002443/0.2293, allocations: 63.83 kB / 432.9 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.967e-05/0.2293, allocations: 24 kB / 432.9 MB, free: 6.102 MB / 302.1 MB Warning: Assuming fixed start value for the following 10 variables: processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real process.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] process.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 20 ($PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition2,TrackRef.nextEventScaled,TrackRef.nextEvent,$PRE.TrackRef.nextEvent,TrackRef.last,TrackRef.b,TrackRef.a,TSsignal.combiTimeTable.nextTimeEventScaled,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent,R_track.ts,$whenCondition1,R.TS_in,R_track.satLOW_in,R_track.satHIGH_in,R_track.ATreq_in,R.satLOW_in,R.satHIGH_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0002818/0.2296, allocations: 267 kB / 433.2 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.118e-05/0.2297, allocations: 55.28 kB / 433.3 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007058/0.2304, allocations: 492.2 kB / 433.7 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.2304, allocations: 4 kB / 433.7 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.2304, allocations: 0 / 433.7 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.2304, allocations: 4 kB / 433.7 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003421/0.2308, allocations: 472.9 kB / 434.2 MB, free: 4.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.2308, allocations: 0 / 434.2 MB, free: 4.754 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003636/0.2311, allocations: 67.89 kB / 434.3 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.2312, allocations: 0 / 434.3 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.528e-05/0.2312, allocations: 19.98 kB / 434.3 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.2312, allocations: 3.938 kB / 434.3 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2312, allocations: 4 kB / 434.3 MB, free: 4.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008134/0.232, allocations: 0.6827 MB / 435 MB, free: 3.953 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.47e-05/0.2321, allocations: 124.4 kB / 435.1 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.862e-05/0.2322, allocations: 19.98 kB / 435.1 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001617/0.2323, allocations: 11.98 kB / 435.1 MB, free: 3.781 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.434e-05/0.2324, allocations: 23.91 kB / 435.2 MB, free: 3.758 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.86e-05/0.2325, allocations: 16 kB / 435.2 MB, free: 3.742 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002973/0.2328, allocations: 382.8 kB / 435.5 MB, free: 3.371 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2328, allocations: 0 / 435.5 MB, free: 3.371 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000411/0.2332, allocations: 119.8 kB / 435.7 MB, free: 3.254 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (R.Fin,R_track.Fin,process.Y[3],process.Y[4],process.U[2],process.U[3],process.w,processTrack.Y[3],processTrack.Y[4],processTrack.U[2],processTrack.U[3],processTrack.w) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,R_track.ts,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,TrackRef.nextEvent,TrackRef.nextEventScaled) * Number of discrete states: 8 (TrackRef.nextEvent,TrackRef.last,TrackRef.nextEventScaled,TrackRef.b,TrackRef.a,$whenCondition1,TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 1 * 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.001473/0.2347, allocations: 449.1 kB / 436.1 MB, free: 2.965 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000742/0.2354, allocations: 0.5231 MB / 436.6 MB, free: 2.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2354, allocations: 4 kB / 436.6 MB, free: 2.426 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000256/0.2357, allocations: 255.1 kB / 436.9 MB, free: 2.164 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000419/0.2361, allocations: 91.58 kB / 437 MB, free: 2.082 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001185/0.2373, allocations: 1.238 MB / 438.2 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002823/0.2376, allocations: 0.8821 MB / 439.1 MB, free: 15.91 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.2377, allocations: 39.44 kB / 439.1 MB, free: 15.87 MB / 318.1 MB Notification: Performance of SimCode: time 3e-07/0.2377, allocations: 0 / 439.1 MB, free: 15.87 MB / 318.1 MB Notification: Performance of Templates: time 0.01165/0.2494, allocations: 6.84 MB / 446 MB, free: 9.035 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1)