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.001938/0.001938, allocations: 180.9 kB / 7.651 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.0825/0.0825, 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 1.93/1.93, allocations: 205.3 MB / 226.9 MB, free: 7.887 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.001055/0.001055, allocations: 94.39 kB / 277.3 MB, free: 5.418 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.293e-05/2.275e-05, allocations: 4 kB / 333.6 MB, free: 28.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1111, allocations: 49.99 MB / 383.6 MB, free: 10.28 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4665/0.5777, allocations: 82.95 MB / 466.6 MB, free: 1.473 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002374/0.578, allocations: 81.89 kB / 466.7 MB, free: 1.43 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03/0.608, allocations: 10.63 MB / 477.3 MB, free: 8.559 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.915e-06/0.6081, allocations: 4 kB / 477.3 MB, free: 8.555 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.679e-05/0.6081, allocations: 19.92 kB / 477.3 MB, free: 8.535 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001534/0.6097, allocations: 0.7679 MB / 478.1 MB, free: 7.746 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.6097, allocations: 16.02 kB / 478.1 MB, free: 7.73 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/0.6098, allocations: 59.3 kB / 478.1 MB, free: 7.672 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008466/0.6107, allocations: 455.2 kB / 478.6 MB, free: 7.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.036e-05/0.6107, allocations: 8 kB / 478.6 MB, free: 7.223 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.744e-05/0.6108, allocations: 35.47 kB / 478.6 MB, free: 7.191 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004912/0.6113, allocations: 288 kB / 478.9 MB, free: 6.992 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005739/0.6119, allocations: 392.4 kB / 479.3 MB, free: 6.656 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.6119, allocations: 4 kB / 479.3 MB, free: 6.652 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.928e-05/0.612, allocations: 10.31 kB / 479.3 MB, free: 6.645 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.612, allocations: 8 kB / 479.3 MB, free: 6.637 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002266/0.6143, allocations: 1.526 MB / 480.8 MB, free: 5.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003064/0.6146, allocations: 225.1 kB / 481.1 MB, free: 5.102 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001926/0.6148, allocations: 130.1 kB / 481.2 MB, free: 5.016 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.346e-05/0.6148, allocations: 8.219 kB / 481.2 MB, free: 5.008 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003568/0.6152, allocations: 241 kB / 481.4 MB, free: 4.801 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 2.194e-06/0.6152, allocations: 0 / 481.4 MB, free: 4.801 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.0007588/0.616, allocations: 391.1 kB / 481.8 MB, free: 4.492 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.888e-05/0.6161, allocations: 111 kB / 481.9 MB, free: 4.359 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004764/0.6166, allocations: 412.8 kB / 482.3 MB, free: 4.035 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.967e-05/0.6166, allocations: 29.7 kB / 482.4 MB, free: 4 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001947/0.6168, allocations: 263.2 kB / 482.6 MB, free: 3.82 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.331e-05/0.6169, allocations: 115 kB / 482.7 MB, free: 3.723 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.857e-05/0.6169, allocations: 4 kB / 482.7 MB, free: 3.719 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001762/0.6171, allocations: 363.4 kB / 483.1 MB, free: 3.375 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/0.6173, allocations: 129.9 kB / 483.2 MB, free: 3.293 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002941/0.6176, allocations: 281.8 kB / 483.5 MB, free: 3.012 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002883/0.6179, allocations: 176 kB / 483.7 MB, free: 2.879 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.091e-06/0.6179, allocations: 4 kB / 483.7 MB, free: 2.875 MB / 346.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007739/0.6187, allocations: 0.5465 MB / 484.2 MB, free: 2.43 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.299e-05/0.6188, allocations: 37.69 kB / 484.2 MB, free: 2.387 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.6188, allocations: 4 kB / 484.3 MB, free: 2.383 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.6188, allocations: 8.531 kB / 484.3 MB, free: 2.375 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004384/0.6192, allocations: 111.2 kB / 484.4 MB, free: 2.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.544e-05/0.6193, allocations: 7.938 kB / 484.4 MB, free: 2.262 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002186/0.6195, allocations: 47.52 kB / 484.4 MB, free: 2.215 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.875e-05/0.6196, allocations: 27.88 kB / 484.5 MB, free: 2.191 MB / 346.7 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.000214/0.6198, allocations: 174.4 kB / 484.6 MB, free: 2.016 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005926/0.6204, allocations: 412 kB / 485 MB, free: 1.688 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.279e-05/0.6204, allocations: 47.44 kB / 485.1 MB, free: 1.641 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007362/0.6212, allocations: 460.3 kB / 485.5 MB, free: 1.289 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.76e-06/0.6212, allocations: 4 kB / 485.5 MB, free: 1.285 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.6212, allocations: 7.953 kB / 485.5 MB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.6212, allocations: 7.984 kB / 485.5 MB, free: 1.27 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004107/0.6217, allocations: 403.4 kB / 485.9 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.6217, allocations: 0 / 485.9 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004051/0.6221, allocations: 71.81 kB / 486 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.6221, allocations: 4 kB / 486 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.782e-05/0.6221, allocations: 15.81 kB / 486 MB, free: 0.832 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.6221, allocations: 3.938 kB / 486 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.6222, allocations: 0 / 486 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008577/0.623, allocations: 0.6191 MB / 486.6 MB, free: 336 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.6231, allocations: 127.7 kB / 486.8 MB, free: 192 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.141e-05/0.6232, allocations: 11 kB / 486.8 MB, free: 184 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.6234, allocations: 11.98 kB / 486.8 MB, free: 172 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.58e-05/0.6235, allocations: 26.14 kB / 486.8 MB, free: 152 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.065e-05/0.6235, allocations: 19.92 kB / 486.8 MB, free: 132 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003136/0.6238, allocations: 311.7 kB / 487.1 MB, free: 15.9 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6238, allocations: 8 kB / 487.1 MB, free: 15.89 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004546/0.6243, allocations: 115.6 kB / 487.3 MB, free: 15.78 MB / 362.7 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.001849/0.6261, allocations: 1.429 MB / 488.7 MB, free: 14.47 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005564/0.6267, allocations: 441.7 kB / 489.1 MB, free: 14.14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.6267, allocations: 0 / 489.1 MB, free: 14.14 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002215/0.627, allocations: 234.9 kB / 489.4 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003661/0.6273, allocations: 69.81 kB / 489.4 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001523/0.6289, allocations: 0.9434 MB / 490.4 MB, free: 13.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004463/0.6293, allocations: 0.8849 MB / 491.2 MB, free: 12.12 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002564/0.6296, allocations: 99.27 kB / 491.3 MB, free: 12.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002008/0.6298, allocations: 173.4 kB / 491.5 MB, free: 11.97 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.6298, allocations: 0 / 491.5 MB, free: 11.97 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02979/0.6596, allocations: 8.827 MB / 0.4886 GB, free: 3.152 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002423/0.6599, allocations: 200 kB / 0.4888 GB, free: 2.953 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.399/3.059, allocations: 0 / 0.4888 GB, free: 2.953 MB / 362.7 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)