Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.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.Examples.TestD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001051/0.001051, allocations: 175 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08017/0.08017, allocations: 10.66 MB / 23.92 MB, free: 1.375 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.56/1.56, allocations: 205.2 MB / 232.1 MB, free: 12.89 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009547/0.0009548, allocations: 96 kB / 282.6 MB, free: 13.68 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 3.629e-05/3.631e-05, allocations: 0 / 340.6 MB, free: 3.609 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.3263, allocations: 49.98 MB / 390.6 MB, free: 35.8 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1141/0.4404, allocations: 83.29 MB / 473.9 MB, free: 404 kB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/0.4407, allocations: 83.95 kB / 473.9 MB, free: 320 kB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.03065/0.4714, allocations: 10.71 MB / 484.6 MB, free: 5.574 MB / 362.8 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4715, allocations: 0 / 484.6 MB, free: 5.574 MB / 362.8 MB Notification: Performance of Transformations before backend: time 3.605e-05/0.4715, allocations: 12 kB / 484.7 MB, free: 5.562 MB / 362.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001241/0.4728, allocations: 0.7646 MB / 485.4 MB, free: 4.742 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.4728, allocations: 15.95 kB / 485.4 MB, free: 4.727 MB / 362.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.906e-05/0.4729, allocations: 74.48 kB / 485.5 MB, free: 4.645 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.473, allocations: 59.25 kB / 485.6 MB, free: 4.586 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008483/0.4739, allocations: 453.5 kB / 486 MB, free: 4.102 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.231e-05/0.4739, allocations: 24.78 kB / 486 MB, free: 4.078 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.336e-05/0.474, allocations: 39.89 kB / 486.1 MB, free: 4.039 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007151/0.4747, allocations: 444 kB / 486.5 MB, free: 3.574 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.444e-05/0.4748, allocations: 4 kB / 486.5 MB, free: 3.57 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.594e-05/0.4748, allocations: 23.94 kB / 486.5 MB, free: 3.547 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.4748, allocations: 8 kB / 486.5 MB, free: 3.539 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005323/0.4754, allocations: 306.9 kB / 486.8 MB, free: 3.234 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002482/0.4779, allocations: 1.6 MB / 488.4 MB, free: 1.547 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000386/0.4783, allocations: 236.3 kB / 488.7 MB, free: 1.305 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002133/0.4785, allocations: 145 kB / 488.8 MB, free: 1.16 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.341e-05/0.4785, allocations: 4.234 kB / 488.8 MB, free: 1.156 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003812/0.4789, allocations: 243.9 kB / 489.1 MB, free: 0.9023 MB / 362.8 MB Notification: Performance of pre-optimization done (n=33): time 3.637e-06/0.4789, allocations: 96 / 489.1 MB, free: 0.9023 MB / 362.8 MB Notification: Performance of matching and sorting (n=33): time 0.0007342/0.4797, allocations: 442.6 kB / 489.5 MB, free: 472 kB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.769e-05/0.4798, allocations: 115.3 kB / 489.6 MB, free: 332 kB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005661/0.4804, allocations: 463.7 kB / 490.1 MB, free: 15.86 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 3.551e-05/0.4804, allocations: 33.7 kB / 490.1 MB, free: 15.82 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001983/0.4806, allocations: 268 kB / 490.4 MB, free: 15.56 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000101/0.4807, allocations: 126.3 kB / 490.5 MB, free: 15.43 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.847e-05/0.4807, allocations: 4 kB / 490.5 MB, free: 15.43 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.4809, allocations: 370.7 kB / 490.8 MB, free: 15.06 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000224/0.4812, allocations: 141 kB / 491 MB, free: 14.92 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003464/0.4815, allocations: 286.2 kB / 491.3 MB, free: 14.58 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003391/0.4819, allocations: 222.5 kB / 491.5 MB, free: 14.35 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.4819, allocations: 0 / 491.5 MB, free: 14.35 MB / 378.8 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009543/0.4828, allocations: 0.6182 MB / 492.1 MB, free: 13.72 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.918e-05/0.4829, allocations: 37.8 kB / 492.1 MB, free: 13.68 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.4829, allocations: 8 kB / 492.1 MB, free: 13.67 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.4829, allocations: 7.938 kB / 492.1 MB, free: 13.66 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004605/0.4834, allocations: 111.8 kB / 492.3 MB, free: 13.55 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.488e-05/0.4834, allocations: 8 kB / 492.3 MB, free: 13.55 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00024/0.4837, allocations: 59.5 kB / 492.3 MB, free: 13.49 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.586e-05/0.4837, allocations: 27.95 kB / 492.3 MB, free: 13.46 MB / 378.8 MB Warning: Assuming fixed start value for the following 10 variables: processTrack.w:VARIABLE(protected = true ) "proper part of the output" type: Real processTrack.U[3]:VARIABLE(protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(protected = true ) type: Real [3] processTrack.Y[4]:VARIABLE(protected = true ) type: Real [4] process.Y[3]:VARIABLE(protected = true ) type: Real [4] process.Y[4]:VARIABLE(protected = true ) type: Real [4] process.U[2]:VARIABLE(protected = true ) type: Real [3] process.U[3]:VARIABLE(protected = true ) type: Real [3] process.w:VARIABLE(protected = true ) "proper part of the output" type: Real processTrack.Y[3]:VARIABLE(protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition1,R_track.TS,TSsignal.combiTimeTable.nextTimeEvent,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,$PRE.TrackRef.nextEvent,TrackRef.nextEvent,TrackRef.nextEventScaled,R.TS_in,R_track.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 1 * 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.0002391/0.484, allocations: 188.2 kB / 492.5 MB, free: 13.26 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.431e-05/0.4841, allocations: 59.27 kB / 492.6 MB, free: 13.2 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008884/0.485, allocations: 0.496 MB / 493.1 MB, free: 12.7 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.485, allocations: 0 / 493.1 MB, free: 12.7 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.485, allocations: 0 / 493.1 MB, free: 12.7 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.485, allocations: 7.984 kB / 493.1 MB, free: 12.69 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005202/0.4855, allocations: 465 kB / 493.5 MB, free: 12.19 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.4855, allocations: 4 kB / 493.6 MB, free: 12.18 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003893/0.4859, allocations: 63.95 kB / 493.6 MB, free: 12.12 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.486, allocations: 0 / 493.6 MB, free: 12.12 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.385e-05/0.486, allocations: 19.98 kB / 493.6 MB, free: 12.1 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.486, allocations: 0 / 493.6 MB, free: 12.1 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.486, allocations: 11.94 kB / 493.6 MB, free: 12.09 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001019/0.487, allocations: 0.6754 MB / 494.3 MB, free: 11.39 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001382/0.4872, allocations: 128.5 kB / 494.4 MB, free: 11.24 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.333e-05/0.4873, allocations: 16 kB / 494.5 MB, free: 11.23 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001691/0.4875, allocations: 19.98 kB / 494.5 MB, free: 11.21 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.809e-05/0.4876, allocations: 19.97 kB / 494.5 MB, free: 11.19 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.479e-05/0.4876, allocations: 15.98 kB / 494.5 MB, free: 11.17 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0004205/0.488, allocations: 365.5 kB / 494.9 MB, free: 10.82 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.7e-07/0.488, allocations: 0 / 494.9 MB, free: 10.82 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0004826/0.4885, allocations: 127.8 kB / 495 MB, free: 10.69 MB / 378.8 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.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.002109/0.4906, allocations: 1.521 MB / 496.5 MB, free: 9.215 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0006848/0.4913, allocations: 479.3 kB / 497 MB, free: 8.734 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.4914, allocations: 0 / 497 MB, free: 8.734 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003007/0.4917, allocations: 251.2 kB / 497.2 MB, free: 8.477 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003534/0.492, allocations: 65.52 kB / 497.3 MB, free: 8.418 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00159/0.4936, allocations: 0.9845 MB / 498.3 MB, free: 7.391 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000491/0.4941, allocations: 0.8896 MB / 499.2 MB, free: 6.473 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.000263/0.4944, allocations: 107.3 kB / 499.3 MB, free: 6.363 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002349/0.4946, allocations: 171.4 kB / 499.4 MB, free: 6.195 MB / 378.8 MB Notification: Performance of SimCode: time 3.41e-07/0.4947, allocations: 0 / 499.4 MB, free: 6.195 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.32/0.8147, allocations: 9.633 MB / 0.4971 GB, free: 100.3 MB / 378.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001795/0.8149, allocations: 213.3 kB / 0.4973 GB, free: 100.1 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.354/3.169, allocations: 3.438 kB / 0.4974 GB, free: 100.1 MB / 378.8 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe 2>&1)