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.001768/0.001768, 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.07678/0.07678, 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.757/1.757, allocations: 205.2 MB / 232.1 MB, free: 12.84 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.001058/0.001058, allocations: 85.16 kB / 282.6 MB, free: 13.6 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 4.366e-05/4.384e-05, allocations: 4 kB / 340.6 MB, free: 3.543 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2859, allocations: 49.98 MB / 390.6 MB, free: 35.73 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1039/0.3899, allocations: 83.34 MB / 473.9 MB, free: 280 kB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002468/0.3901, allocations: 83.94 kB / 474 MB, free: 196 kB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.03067/0.4208, allocations: 10.49 MB / 484.5 MB, free: 5.664 MB / 362.8 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4209, allocations: 0 / 484.5 MB, free: 5.664 MB / 362.8 MB Notification: Performance of Transformations before backend: time 3.884e-05/0.4209, allocations: 15.98 kB / 484.5 MB, free: 5.648 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001097/0.422, allocations: 0.7488 MB / 485.2 MB, free: 4.84 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.4221, allocations: 8.031 kB / 485.2 MB, free: 4.832 MB / 362.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.516e-05/0.4222, allocations: 74.48 kB / 485.3 MB, free: 4.75 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.4223, allocations: 55.34 kB / 485.4 MB, free: 4.695 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008239/0.4231, allocations: 445.3 kB / 485.8 MB, free: 4.219 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.889e-05/0.4232, allocations: 75.97 kB / 485.9 MB, free: 4.133 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.333e-05/0.4233, allocations: 32 kB / 485.9 MB, free: 4.102 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006142/0.4239, allocations: 406.2 kB / 486.3 MB, free: 3.672 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.4239, allocations: 0 / 486.3 MB, free: 3.672 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.973e-05/0.424, allocations: 19.95 kB / 486.3 MB, free: 3.652 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.424, allocations: 8 kB / 486.3 MB, free: 3.645 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004422/0.4244, allocations: 262.1 kB / 486.6 MB, free: 3.387 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002249/0.4267, allocations: 1.497 MB / 488.1 MB, free: 1.805 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004367/0.4272, allocations: 203 kB / 488.3 MB, free: 1.598 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001811/0.4273, allocations: 121 kB / 488.4 MB, free: 1.477 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.518e-05/0.4274, allocations: 8.172 kB / 488.4 MB, free: 1.469 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000337/0.4277, allocations: 220.6 kB / 488.6 MB, free: 1.234 MB / 362.8 MB Notification: Performance of pre-optimization done (n=27): time 3.587e-06/0.4278, allocations: 4 kB / 488.6 MB, free: 1.23 MB / 362.8 MB Notification: Performance of matching and sorting (n=27): time 0.0007586/0.4285, allocations: 398.9 kB / 489 MB, free: 0.832 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.586e-05/0.4286, allocations: 107 kB / 489.1 MB, free: 0.7031 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005166/0.4291, allocations: 435 kB / 489.6 MB, free: 284 kB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 3.174e-05/0.4292, allocations: 33.7 kB / 489.6 MB, free: 244 kB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001975/0.4294, allocations: 248.1 kB / 489.8 MB, free: 15.99 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 7.474e-05/0.4295, allocations: 86.81 kB / 489.9 MB, free: 15.9 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.967e-05/0.4295, allocations: 8 kB / 489.9 MB, free: 15.89 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.4296, allocations: 362.6 kB / 490.3 MB, free: 15.54 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001904/0.4298, allocations: 120.7 kB / 490.4 MB, free: 15.41 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002705/0.4301, allocations: 228.8 kB / 490.6 MB, free: 15.14 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002585/0.4304, allocations: 185.7 kB / 490.8 MB, free: 14.96 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.4304, allocations: 0 / 490.8 MB, free: 14.96 MB / 378.8 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007773/0.4312, allocations: 0.5064 MB / 491.3 MB, free: 14.44 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.879e-05/0.4313, allocations: 46.61 kB / 491.4 MB, free: 14.39 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.4313, allocations: 4 kB / 491.4 MB, free: 14.38 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/0.4313, allocations: 4 kB / 491.4 MB, free: 14.38 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006028/0.4319, allocations: 103.8 kB / 491.5 MB, free: 14.28 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.4319, allocations: 4 kB / 491.5 MB, free: 14.27 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002226/0.4322, allocations: 51.58 kB / 491.5 MB, free: 14.22 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.471e-05/0.4322, allocations: 16 kB / 491.5 MB, free: 14.21 MB / 378.8 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.0002236/0.4325, allocations: 183.4 kB / 491.7 MB, free: 14.02 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.407e-05/0.4325, allocations: 47.44 kB / 491.8 MB, free: 13.97 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007907/0.4333, allocations: 450.7 kB / 492.2 MB, free: 13.52 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.4334, allocations: 8 kB / 492.2 MB, free: 13.51 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.4334, allocations: 0 / 492.2 MB, free: 13.51 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.4334, allocations: 0 / 492.2 MB, free: 13.51 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005088/0.4339, allocations: 441 kB / 492.6 MB, free: 13.03 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.4339, allocations: 0 / 492.6 MB, free: 13.03 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005952/0.4345, allocations: 67.89 kB / 492.7 MB, free: 12.96 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.613e-06/0.4345, allocations: 4 kB / 492.7 MB, free: 12.96 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.744e-05/0.4346, allocations: 11.98 kB / 492.7 MB, free: 12.95 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.4346, allocations: 0 / 492.7 MB, free: 12.95 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.4346, allocations: 8 kB / 492.7 MB, free: 12.94 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.4356, allocations: 0.6157 MB / 493.3 MB, free: 12.3 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.4358, allocations: 128.5 kB / 493.5 MB, free: 12.15 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.612e-05/0.4358, allocations: 11.98 kB / 493.5 MB, free: 12.14 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/0.436, allocations: 19.98 kB / 493.5 MB, free: 12.12 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.885e-05/0.4361, allocations: 15.98 kB / 493.5 MB, free: 12.11 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.619e-05/0.4362, allocations: 15.98 kB / 493.5 MB, free: 12.09 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0004302/0.4366, allocations: 341.2 kB / 493.9 MB, free: 11.76 MB / 378.8 MB Notification: Performance of sort global known variables: time 2e-07/0.4366, allocations: 3.938 kB / 493.9 MB, free: 11.76 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0005278/0.4371, allocations: 123.8 kB / 494 MB, free: 11.64 MB / 378.8 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.002156/0.4393, allocations: 1.439 MB / 495.4 MB, free: 10.24 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0006394/0.44, allocations: 404 kB / 495.8 MB, free: 9.836 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.44, allocations: 0 / 495.8 MB, free: 9.836 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002722/0.4403, allocations: 227.2 kB / 496 MB, free: 9.602 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004111/0.4407, allocations: 65.11 kB / 496.1 MB, free: 9.539 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001434/0.4421, allocations: 0.8178 MB / 496.9 MB, free: 8.68 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004572/0.4426, allocations: 0.8694 MB / 497.8 MB, free: 7.785 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0002431/0.4428, allocations: 75.16 kB / 497.9 MB, free: 7.707 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002297/0.4431, allocations: 163.4 kB / 498 MB, free: 7.551 MB / 378.8 MB Notification: Performance of SimCode: time 1.222e-06/0.4431, allocations: 0 / 498 MB, free: 7.551 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.263/0.7061, allocations: 8.75 MB / 0.4949 GB, free: 100.8 MB / 378.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001609/0.7063, allocations: 216.5 kB / 0.4951 GB, free: 100.5 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.359/3.065, allocations: 2.906 kB / 0.4951 GB, free: 100.5 MB / 378.8 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)