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/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.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_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.001109/0.00111, allocations: 172 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06018/0.06018, allocations: 10.66 MB / 18.73 MB, free: 1.324 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.028/2.028, allocations: 205.3 MB / 226.9 MB, free: 7.984 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008913/0.0008914, allocations: 98.41 kB / 277.3 MB, free: 5.52 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 2.348e-05/2.35e-05, allocations: 4 kB / 333.6 MB, free: 28.41 MB / 250.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1638/0.1639, allocations: 50 MB / 383.6 MB, free: 10.36 MB / 282.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4685/0.6325, allocations: 82.94 MB / 466.6 MB, free: 1.633 MB / 330.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003032/0.6328, allocations: 84.02 kB / 466.7 MB, free: 1.59 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.03154/0.6644, allocations: 10.68 MB / 477.3 MB, free: 8.68 MB / 346.8 MB Notification: Performance of FrontEnd: time 2.585e-06/0.6644, allocations: 0 / 477.3 MB, free: 8.68 MB / 346.8 MB Notification: Performance of Transformations before backend: time 5.085e-05/0.6645, allocations: 16 kB / 477.3 MB, free: 8.664 MB / 346.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.001501/0.666, allocations: 0.7823 MB / 478.1 MB, free: 7.859 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/0.6661, allocations: 11.97 kB / 478.1 MB, free: 7.848 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001312/0.6662, allocations: 63.23 kB / 478.2 MB, free: 7.785 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008575/0.6671, allocations: 465.1 kB / 478.7 MB, free: 7.336 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.439e-05/0.6671, allocations: 12 kB / 478.7 MB, free: 7.324 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.848e-05/0.6672, allocations: 23.98 kB / 478.7 MB, free: 7.301 MB / 346.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005027/0.6677, allocations: 274.1 kB / 479 MB, free: 7.113 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000646/0.6684, allocations: 407.4 kB / 479.4 MB, free: 6.766 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.446e-05/0.6684, allocations: 3.906 kB / 479.4 MB, free: 6.762 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.299e-05/0.6684, allocations: 7.953 kB / 479.4 MB, free: 6.754 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.6685, allocations: 8 kB / 479.4 MB, free: 6.746 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002577/0.6711, allocations: 1.529 MB / 480.9 MB, free: 5.375 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000323/0.6714, allocations: 225.5 kB / 481.1 MB, free: 5.207 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001808/0.6716, allocations: 132 kB / 481.3 MB, free: 5.121 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.968e-05/0.6716, allocations: 8.172 kB / 481.3 MB, free: 5.113 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003632/0.672, allocations: 236.5 kB / 481.5 MB, free: 4.91 MB / 346.8 MB Notification: Performance of pre-optimization done (n=33): time 2.094e-06/0.672, allocations: 3.938 kB / 481.5 MB, free: 4.906 MB / 346.8 MB Notification: Performance of matching and sorting (n=33): time 0.0008172/0.6728, allocations: 391.2 kB / 481.9 MB, free: 4.594 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.475e-05/0.6729, allocations: 110.4 kB / 482 MB, free: 4.465 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005354/0.6735, allocations: 420.6 kB / 482.4 MB, free: 4.133 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 3.433e-05/0.6735, allocations: 25.7 kB / 482.4 MB, free: 4.102 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002298/0.6738, allocations: 271.8 kB / 482.7 MB, free: 3.914 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.6739, allocations: 114.7 kB / 482.8 MB, free: 3.816 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.924e-05/0.6739, allocations: 0 / 482.8 MB, free: 3.816 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.6741, allocations: 364.5 kB / 483.2 MB, free: 3.473 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000192/0.6743, allocations: 128.6 kB / 483.3 MB, free: 3.391 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002873/0.6746, allocations: 277.8 kB / 483.6 MB, free: 3.113 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003086/0.6749, allocations: 184 kB / 483.7 MB, free: 2.973 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.6749, allocations: 4 kB / 483.7 MB, free: 2.969 MB / 346.8 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007797/0.6757, allocations: 0.541 MB / 484.3 MB, free: 2.527 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.77e-05/0.6758, allocations: 45.12 kB / 484.3 MB, free: 2.48 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.527e-06/0.6758, allocations: 4 kB / 484.3 MB, free: 2.477 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.089e-05/0.6758, allocations: 4.531 kB / 484.3 MB, free: 2.473 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004569/0.6763, allocations: 110.4 kB / 484.4 MB, free: 2.367 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.313e-05/0.6763, allocations: 11.98 kB / 484.4 MB, free: 2.355 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002305/0.6765, allocations: 43.58 kB / 484.5 MB, free: 2.312 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.337e-05/0.6766, allocations: 18.69 kB / 484.5 MB, free: 2.297 MB / 346.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.0002728/0.6769, allocations: 178.1 kB / 484.7 MB, free: 2.117 MB / 346.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006351/0.6775, allocations: 418.2 kB / 485.1 MB, free: 1.781 MB / 346.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.762e-05/0.6776, allocations: 47.44 kB / 485.1 MB, free: 1.734 MB / 346.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007398/0.6784, allocations: 449.8 kB / 485.6 MB, free: 1.395 MB / 346.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.6784, allocations: 4 kB / 485.6 MB, free: 1.391 MB / 346.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.6784, allocations: 7.953 kB / 485.6 MB, free: 1.383 MB / 346.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.6784, allocations: 4 kB / 485.6 MB, free: 1.379 MB / 346.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004773/0.6789, allocations: 413.8 kB / 486 MB, free: 1.016 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.6789, allocations: 0 / 486 MB, free: 1.016 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004083/0.6793, allocations: 71.88 kB / 486.1 MB, free: 0.9453 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.6793, allocations: 4 kB / 486.1 MB, free: 0.9414 MB / 346.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.428e-05/0.6794, allocations: 17.98 kB / 486.1 MB, free: 0.9297 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.6794, allocations: 0 / 486.1 MB, free: 0.9297 MB / 346.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.6794, allocations: 0 / 486.1 MB, free: 0.9297 MB / 346.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009113/0.6803, allocations: 0.6205 MB / 486.7 MB, free: 444 kB / 346.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.6804, allocations: 127.8 kB / 486.8 MB, free: 300 kB / 346.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.541e-05/0.6805, allocations: 19.55 kB / 486.9 MB, free: 284 kB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001719/0.6807, allocations: 11.98 kB / 486.9 MB, free: 272 kB / 346.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.376e-05/0.6808, allocations: 23.16 kB / 486.9 MB, free: 252 kB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.391e-05/0.6808, allocations: 15.5 kB / 486.9 MB, free: 240 kB / 346.8 MB Notification: Performance of sorting global known variables: time 0.0003198/0.6812, allocations: 312.4 kB / 487.2 MB, free: 0 / 346.8 MB Notification: Performance of sort global known variables: time 2.465e-06/0.6812, allocations: 4.156 kB / 487.2 MB, free: 15.99 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0005094/0.6817, allocations: 123.3 kB / 487.3 MB, free: 15.88 MB / 362.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.00182/0.6835, allocations: 1.424 MB / 488.8 MB, free: 14.57 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0006042/0.6841, allocations: 444.5 kB / 489.2 MB, free: 14.24 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.6842, allocations: 0 / 489.2 MB, free: 14.24 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002567/0.6844, allocations: 240.2 kB / 489.4 MB, free: 14.05 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003835/0.6848, allocations: 69.69 kB / 489.5 MB, free: 14.01 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001557/0.6864, allocations: 0.9436 MB / 490.4 MB, free: 13.11 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004242/0.6868, allocations: 0.8908 MB / 491.3 MB, free: 12.21 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 0.0002736/0.6871, allocations: 99.31 kB / 491.4 MB, free: 12.11 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000203/0.6873, allocations: 170.2 kB / 491.6 MB, free: 12.06 MB / 362.8 MB Notification: Performance of SimCode: time 2.5e-07/0.6873, allocations: 0 / 491.6 MB, free: 12.06 MB / 362.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03528/0.7226, allocations: 8.882 MB / 0.4887 GB, free: 3.191 MB / 362.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002657/0.723, allocations: 201.2 kB / 0.4889 GB, free: 2.992 MB / 362.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.212/2.935, allocations: 0 / 0.4889 GB, free: 2.992 MB / 362.8 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1)