Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_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: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 193.8 kB / 16.67 MB, free: 6.574 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.427/1.427, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1693/0.1693, allocations: 11.18 MB / 301.7 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00212/0.00212, allocations: 63.89 kB / 417.3 MB, free: 6.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2502, allocations: 51.97 MB / 469.3 MB, free: 16.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.003185/0.2534, allocations: 2.458 MB / 471.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002039/0.2555, allocations: 1.426 MB / 473.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001855/0.2557, allocations: 14.47 kB / 473.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006183/0.2563, allocations: 226.9 kB / 473.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003267/0.2567, allocations: 164.6 kB / 473.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009176/0.2576, allocations: 416.6 kB / 474 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005923/0.2582, allocations: 0.5765 MB / 474.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001753/0.2584, allocations: 96.2 kB / 474.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002464/0.2586, allocations: 210.2 kB / 474.9 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002749/0.2589, allocations: 236.8 kB / 475.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.169e-05/0.259, allocations: 30.09 kB / 475.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000277/0.2593, allocations: 149.2 kB / 475.3 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001372/0.2594, allocations: 126.2 kB / 475.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.2596, allocations: 226.5 kB / 475.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005699/0.2601, allocations: 0.5318 MB / 476.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2602, allocations: 0 / 476.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2602, allocations: 0 / 476.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.2602, allocations: 0 / 476.2 MB, free: 12.34 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001257/0.2614, allocations: 0.8906 MB / 477.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.2615, allocations: 13.02 kB / 477.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.261e-05/0.2616, allocations: 71.56 kB / 477.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.2617, allocations: 60.72 kB / 477.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005286/0.2622, allocations: 455.4 kB / 477.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.655e-05/0.2622, allocations: 30.73 kB / 477.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.64e-05/0.2623, allocations: 42.41 kB / 477.7 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005626/0.2629, allocations: 437.1 kB / 478.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.2629, allocations: 5.062 kB / 478.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.172e-05/0.2629, allocations: 17.22 kB / 478.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.263, allocations: 8.125 kB / 478.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004919/0.2635, allocations: 278.4 kB / 478.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00166/0.2651, allocations: 1.77 MB / 480.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005041/0.2656, allocations: 210.7 kB / 480.4 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002016/0.2659, allocations: 119.8 kB / 480.5 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.947e-05/0.2659, allocations: 11.14 kB / 480.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003201/0.2662, allocations: 211.2 kB / 480.7 MB, free: 8.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.853e-06/0.2662, allocations: 0 / 480.7 MB, free: 8.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008943/0.2671, allocations: 491.4 kB / 481.2 MB, free: 8.488 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.553e-05/0.2672, allocations: 115.3 kB / 481.3 MB, free: 8.355 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005715/0.2678, allocations: 0.5117 MB / 481.9 MB, free: 8.047 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.527e-05/0.2678, allocations: 33.23 kB / 481.9 MB, free: 8.012 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001701/0.268, allocations: 274 kB / 482.2 MB, free: 7.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.9e-05/0.2681, allocations: 100.6 kB / 482.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.2682, allocations: 91.12 kB / 482.3 MB, free: 7.625 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.2e-05/0.2683, allocations: 364 kB / 482.7 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002201/0.2685, allocations: 117 kB / 482.8 MB, free: 7.223 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002638/0.2688, allocations: 274 kB / 483.1 MB, free: 6.973 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001429/0.2702, allocations: 0.7694 MB / 483.8 MB, free: 6.406 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.2702, allocations: 1.188 kB / 483.8 MB, free: 6.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007552/0.271, allocations: 0.5301 MB / 484.4 MB, free: 6.129 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.359e-05/0.271, allocations: 41.42 kB / 484.4 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.2711, allocations: 4.156 kB / 484.4 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.475e-05/0.2711, allocations: 10.91 kB / 484.4 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003097/0.2714, allocations: 86.77 kB / 484.5 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.314e-05/0.2714, allocations: 15.36 kB / 484.5 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002212/0.2717, allocations: 62.36 kB / 484.6 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.167e-05/0.2717, allocations: 15.94 kB / 484.6 MB, free: 6.016 MB / 350.1 MB Warning: Assuming fixed start value for the following 6 variables: processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] 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] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (50): * Single equations (assignments): 49 * 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.0002582/0.272, allocations: 245 kB / 484.8 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.156e-05/0.272, allocations: 51.36 kB / 484.9 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006844/0.2727, allocations: 436 kB / 485.3 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.2727, allocations: 7.906 kB / 485.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.2727, allocations: 3.984 kB / 485.3 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.2728, allocations: 4 kB / 485.3 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003443/0.2731, allocations: 427.5 kB / 485.8 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.2731, allocations: 3.984 kB / 485.8 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002438/0.2734, allocations: 52.44 kB / 485.8 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.2734, allocations: 1.25 kB / 485.8 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.05e-05/0.2734, allocations: 9.5 kB / 485.8 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.2734, allocations: 5.312 kB / 485.8 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.2734, allocations: 0 / 485.8 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008414/0.2743, allocations: 0.589 MB / 486.4 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.626e-05/0.2744, allocations: 131.9 kB / 486.5 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.332e-05/0.2744, allocations: 13.67 kB / 486.6 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.2746, allocations: 19.61 kB / 486.6 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.544e-05/0.2747, allocations: 15.98 kB / 486.6 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.114e-05/0.2747, allocations: 15.89 kB / 486.6 MB, free: 4.652 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000337/0.275, allocations: 357 kB / 487 MB, free: 4.449 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.275, allocations: 7.938 kB / 487 MB, free: 4.441 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004734/0.2755, allocations: 115.3 kB / 487.1 MB, free: 4.41 MB / 350.1 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,processTrack.Y[3],processTrack.U[2],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 (25): * Single equations (assignments): 22 * 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.002375/0.2779, allocations: 1.473 MB / 488.6 MB, free: 3.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006463/0.2786, allocations: 416.6 kB / 489 MB, free: 3.219 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2786, allocations: 5.125 kB / 489 MB, free: 3.215 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002483/0.2788, allocations: 223.5 kB / 489.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004111/0.2793, allocations: 78.7 kB / 489.3 MB, free: 3.035 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004323/0.2836, allocations: 4.323 MB / 493.6 MB, free: 112 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004724/0.2841, allocations: 0.8625 MB / 494.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002147/0.2843, allocations: 80.98 kB / 494.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002388/0.2846, allocations: 171.4 kB / 494.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2846, allocations: 0 / 494.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03517/0.3197, allocations: 9.66 MB / 0.4925 GB, free: 5.609 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.453/8.772, allocations: 7.609 kB / 0.4925 GB, free: 5.602 MB / 366.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe 2>&1)