Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_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.TestI_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestI_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_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.001094/0.001095, allocations: 173.9 kB / 7.648 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.06071/0.06071, allocations: 10.66 MB / 18.73 MB, free: 1.328 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.973/1.973, allocations: 205.3 MB / 226.9 MB, free: 7.891 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.001063/0.001063, allocations: 94.45 kB / 277.3 MB, free: 5.422 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.058e-05/2.061e-05, allocations: 0 / 333.6 MB, free: 28.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1292, allocations: 50 MB / 383.6 MB, free: 10.27 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4553/0.5846, allocations: 82.98 MB / 466.6 MB, free: 1.453 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000303/0.585, allocations: 80.95 kB / 466.7 MB, free: 1.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03082/0.6158, allocations: 10.42 MB / 477.1 MB, free: 8.715 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.6159, allocations: 0 / 477.1 MB, free: 8.715 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.194e-05/0.6159, allocations: 16 kB / 477.1 MB, free: 8.699 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001599/0.6175, allocations: 0.7532 MB / 477.9 MB, free: 7.922 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.792e-05/0.6176, allocations: 12.03 kB / 477.9 MB, free: 7.91 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001466/0.6178, allocations: 59.3 kB / 478 MB, free: 7.852 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.6188, allocations: 450.6 kB / 478.4 MB, free: 7.414 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001061/0.619, allocations: 63.97 kB / 478.5 MB, free: 7.34 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.44e-05/0.619, allocations: 20 kB / 478.5 MB, free: 7.32 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005408/0.6196, allocations: 243.9 kB / 478.7 MB, free: 7.152 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006623/0.6203, allocations: 366.9 kB / 479.1 MB, free: 6.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.62e-05/0.6203, allocations: 0 / 479.1 MB, free: 6.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.567e-05/0.6203, allocations: 7.953 kB / 479.1 MB, free: 6.832 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.6204, allocations: 4 kB / 479.1 MB, free: 6.828 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002685/0.6231, allocations: 1.439 MB / 480.5 MB, free: 5.543 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005021/0.6236, allocations: 183.2 kB / 480.7 MB, free: 5.406 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001849/0.6238, allocations: 122.9 kB / 480.8 MB, free: 5.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.336e-05/0.6238, allocations: 4.172 kB / 480.8 MB, free: 5.316 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000394/0.6242, allocations: 211.3 kB / 481 MB, free: 5.129 MB / 346.7 MB Notification: Performance of pre-optimization done (n=27): time 2.836e-06/0.6243, allocations: 0 / 481 MB, free: 5.129 MB / 346.7 MB Notification: Performance of matching and sorting (n=27): time 0.0008111/0.6251, allocations: 345.9 kB / 481.4 MB, free: 4.852 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.843e-05/0.6252, allocations: 113.8 kB / 481.5 MB, free: 4.719 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004991/0.6257, allocations: 389 kB / 481.9 MB, free: 4.41 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.773e-05/0.6257, allocations: 25.7 kB / 481.9 MB, free: 4.379 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002059/0.626, allocations: 248.2 kB / 482.1 MB, free: 4.207 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.35e-05/0.626, allocations: 92.23 kB / 482.2 MB, free: 4.129 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.612e-05/0.6261, allocations: 3.938 kB / 482.2 MB, free: 4.125 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001963/0.6263, allocations: 356.3 kB / 482.6 MB, free: 3.785 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001717/0.6265, allocations: 110.1 kB / 482.7 MB, free: 3.711 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002521/0.6267, allocations: 222.1 kB / 482.9 MB, free: 3.488 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002992/0.627, allocations: 140.8 kB / 483 MB, free: 3.387 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.627, allocations: 0 / 483 MB, free: 3.387 MB / 346.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008043/0.6278, allocations: 469.2 kB / 483.5 MB, free: 3.008 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.475e-05/0.6279, allocations: 36.2 kB / 483.5 MB, free: 2.969 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/0.6279, allocations: 0 / 483.5 MB, free: 2.969 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.651e-05/0.628, allocations: 8 kB / 483.5 MB, free: 2.961 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006377/0.6286, allocations: 96.09 kB / 483.6 MB, free: 2.871 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.96e-05/0.6287, allocations: 11.94 kB / 483.6 MB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002203/0.6289, allocations: 35.67 kB / 483.7 MB, free: 2.824 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.712e-05/0.6289, allocations: 19.19 kB / 483.7 MB, free: 2.809 MB / 346.7 MB Warning: Assuming fixed start value for the following 6 variables: processTrack.w:VARIABLE(protected = true ) "proper part of the output" type: Real processTrack.U[2]:VARIABLE(protected = true ) type: Real [2] process.Y[3]:VARIABLE(protected = true ) type: Real [3] process.U[2]:VARIABLE(protected = true ) type: Real [2] process.w:VARIABLE(protected = true ) "proper part of the output" type: Real processTrack.Y[3]:VARIABLE(protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (45): * Single equations (assignments): 44 * 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.0002991/0.6293, allocations: 162.7 kB / 483.8 MB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006283/0.6299, allocations: 369 kB / 484.2 MB, free: 2.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.093e-05/0.63, allocations: 55.42 kB / 484.3 MB, free: 2.285 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007271/0.6307, allocations: 397.8 kB / 484.7 MB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.6307, allocations: 0 / 484.7 MB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.6307, allocations: 0 / 484.7 MB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.363e-06/0.6307, allocations: 0 / 484.7 MB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005744/0.6313, allocations: 390.1 kB / 485 MB, free: 1.637 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.6313, allocations: 0 / 485 MB, free: 1.637 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006089/0.632, allocations: 75.89 kB / 485.1 MB, free: 1.562 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.273e-06/0.632, allocations: 0 / 485.1 MB, free: 1.562 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.315e-05/0.632, allocations: 15.73 kB / 485.1 MB, free: 1.551 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.632, allocations: 3.984 kB / 485.1 MB, free: 1.547 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.6321, allocations: 0 / 485.1 MB, free: 1.547 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009607/0.633, allocations: 0.5473 MB / 485.7 MB, free: 1.109 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001629/0.6332, allocations: 127.8 kB / 485.8 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.01e-05/0.6333, allocations: 11.5 kB / 485.8 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.6335, allocations: 19.91 kB / 485.8 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.6336, allocations: 19.23 kB / 485.8 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.755e-05/0.6336, allocations: 16.06 kB / 485.9 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003669/0.634, allocations: 291.2 kB / 486.1 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.634, allocations: 0 / 486.1 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006107/0.6346, allocations: 115.3 kB / 486.3 MB, free: 0.582 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (R.Iout,R_track.Iout,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.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled) * 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 (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.002412/0.6371, allocations: 1.359 MB / 487.6 MB, free: 15.33 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000768/0.6379, allocations: 375.6 kB / 488 MB, free: 15.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.658e-06/0.6379, allocations: 0 / 488 MB, free: 15.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000276/0.6382, allocations: 212.1 kB / 488.2 MB, free: 14.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004554/0.6386, allocations: 63.78 kB / 488.3 MB, free: 14.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001779/0.6404, allocations: 0.8072 MB / 489.1 MB, free: 14.06 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005704/0.641, allocations: 0.8633 MB / 489.9 MB, free: 13.18 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002393/0.6413, allocations: 67.23 kB / 490 MB, free: 13.12 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002291/0.6415, allocations: 160.7 kB / 490.1 MB, free: 13.07 MB / 362.7 MB Notification: Performance of SimCode: time 4.21e-07/0.6415, allocations: 0 / 490.1 MB, free: 13.07 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03478/0.6763, allocations: 7.973 MB / 498.1 MB, free: 5.113 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002209/0.6766, allocations: 200 kB / 498.3 MB, free: 4.914 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.252/2.929, allocations: 0 / 498.3 MB, free: 4.914 MB / 362.7 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe 2>&1)