Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008042/0.0008045, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008613/0.0008614, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.249/1.249, allocations: 205.4 MB / 222.1 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05496/0.05496, allocations: 10.75 MB / 281.1 MB, free: 10.54 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005538/0.0005539, allocations: 22.91 kB / 341.7 MB, free: 23.75 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06984/0.07041, allocations: 50 MB / 391.7 MB, free: 5.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI): time 0.00173/0.07217, allocations: 1.433 MB / 393.2 MB, free: 4.227 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009305/0.07313, allocations: 0.6013 MB / 393.8 MB, free: 3.617 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001037/0.07326, allocations: 3.938 kB / 393.8 MB, free: 3.613 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.493e-05/0.07336, allocations: 11.88 kB / 393.8 MB, free: 3.602 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.969e-05/0.07345, allocations: 35.72 kB / 393.8 MB, free: 3.566 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000235/0.07369, allocations: 63.89 kB / 393.9 MB, free: 3.504 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002132/0.07391, allocations: 179.3 kB / 394.1 MB, free: 3.328 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.07403, allocations: 29.95 kB / 394.1 MB, free: 3.301 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001234/0.07416, allocations: 75.69 kB / 394.2 MB, free: 3.227 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001137/0.07428, allocations: 67.67 kB / 394.2 MB, free: 3.16 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.497e-05/0.07432, allocations: 8 kB / 394.2 MB, free: 3.152 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.524e-05/0.07435, allocations: 11.94 kB / 394.2 MB, free: 3.141 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.984e-05/0.0744, allocations: 35.83 kB / 394.3 MB, free: 3.105 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.471e-05/0.07446, allocations: 53.62 kB / 394.3 MB, free: 3.047 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001407/0.07461, allocations: 119.6 kB / 394.4 MB, free: 2.93 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.07462, allocations: 0 / 394.4 MB, free: 2.93 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.07462, allocations: 0 / 394.4 MB, free: 2.93 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.07463, allocations: 0 / 394.4 MB, free: 2.93 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0009148/0.07556, allocations: 0.564 MB / 395 MB, free: 2.309 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.0756, allocations: 12.03 kB / 395 MB, free: 2.297 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.38e-05/0.07566, allocations: 46.55 kB / 395.1 MB, free: 2.242 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.377e-05/0.07572, allocations: 19.77 kB / 395.1 MB, free: 2.223 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002678/0.07599, allocations: 246.5 kB / 395.3 MB, free: 1.941 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.605e-05/0.07606, allocations: 63.41 kB / 395.4 MB, free: 1.867 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.691e-05/0.0761, allocations: 12 kB / 395.4 MB, free: 1.855 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004661/0.07658, allocations: 216.6 kB / 395.6 MB, free: 1.629 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.07659, allocations: 0 / 395.6 MB, free: 1.629 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/0.07663, allocations: 8 kB / 395.6 MB, free: 1.621 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.07664, allocations: 7.953 kB / 395.6 MB, free: 1.613 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005482/0.07719, allocations: 183.8 kB / 395.8 MB, free: 1.434 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009165/0.07812, allocations: 0.6644 MB / 396.5 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000608/0.07874, allocations: 198.4 kB / 396.7 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002728/0.07903, allocations: 96.78 kB / 396.8 MB, free: 420 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.499e-05/0.07905, allocations: 0 / 396.8 MB, free: 420 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004428/0.0795, allocations: 179.4 kB / 396.9 MB, free: 228 kB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 2.485e-06/0.07952, allocations: 0 / 396.9 MB, free: 228 kB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009578/0.08048, allocations: 349.3 kB / 397.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.089e-05/0.08054, allocations: 55.41 kB / 397.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001833/0.08073, allocations: 207.7 kB / 397.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.025e-05/0.08077, allocations: 33.7 kB / 397.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.085e-05/0.08087, allocations: 132.2 kB / 397.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.34e-05/0.08091, allocations: 39.47 kB / 397.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.609e-05/0.08093, allocations: 8 kB / 397.7 MB, free: 15.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.08105, allocations: 330.8 kB / 398.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003022/0.08136, allocations: 103.9 kB / 398.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003243/0.08169, allocations: 165.8 kB / 398.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003269/0.08203, allocations: 159.3 kB / 398.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.08204, allocations: 4 kB / 398.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007701/0.08282, allocations: 376.5 kB / 398.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.397e-05/0.08289, allocations: 62.23 kB / 398.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.0829, allocations: 8 kB / 398.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.08292, allocations: 4 kB / 398.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003517/0.08328, allocations: 71.83 kB / 399 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.0833, allocations: 4 kB / 399 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002455/0.08355, allocations: 55.8 kB / 399.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.08359, allocations: 8 kB / 399.1 MB, free: 13.98 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,$whenCondition3,$whenCondition1,$PRE.Input.T_start,Input.T_start,$PRE.Input.count,Input.count,Itr.ts,$PRE.TSsignal.pulseStart,TSsignal.pulseStart,$PRE.TrackRef.T_start,TrackRef.T_start,$PRE.TrackRef.count,TrackRef.count,I.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 2 * 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.0001289/0.08372, allocations: 141.7 kB / 399.2 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.038e-05/0.08376, allocations: 19.8 kB / 399.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.86e-05/0.08381, allocations: 21.53 kB / 399.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.08382, allocations: 0 / 399.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.08383, allocations: 4 kB / 399.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.08384, allocations: 4 kB / 399.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002275/0.08407, allocations: 245.5 kB / 399.5 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.08409, allocations: 0 / 399.5 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003726/0.08446, allocations: 63.89 kB / 399.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.08448, allocations: 0 / 399.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/0.0845, allocations: 4 kB / 399.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.08451, allocations: 4 kB / 399.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.08452, allocations: 3.984 kB / 399.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009416/0.08546, allocations: 400.5 kB / 400 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.189e-05/0.08554, allocations: 96.89 kB / 400.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.501e-05/0.08558, allocations: 8 kB / 400.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002065/0.08579, allocations: 35.95 kB / 400.1 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.439e-05/0.08589, allocations: 31.94 kB / 400.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.488e-05/0.08591, allocations: 12.06 kB / 400.1 MB, free: 12.81 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001115/0.08603, allocations: 141.5 kB / 400.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.08603, allocations: 0 / 400.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002486/0.08629, allocations: 36 kB / 400.3 MB, free: 12.64 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (I.y,Itr.y) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,Input.T_start,Input.count,Itr.ts,TSsignal.pulseStart,TrackRef.T_start,TrackRef.count) * Number of discrete states: 2 (Input.count,TrackRef.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001304/0.0876, allocations: 0.9362 MB / 401.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007834/0.0884, allocations: 358.8 kB / 401.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.08842, allocations: 0 / 401.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003203/0.08874, allocations: 107.9 kB / 401.7 MB, free: 11.19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.08907, allocations: 35.81 kB / 401.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002553/0.09163, allocations: 1.245 MB / 403 MB, free: 9.844 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003926/0.09205, allocations: 0.7244 MB / 403.7 MB, free: 9.094 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001223/0.09219, allocations: 25.47 kB / 403.7 MB, free: 9.066 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.09231, allocations: 47.42 kB / 403.8 MB, free: 9.023 MB / 302.1 MB Notification: Performance of SimCode: time 2.665e-06/0.09232, allocations: 0 / 403.8 MB, free: 9.023 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0154/0.1077, allocations: 3.813 MB / 407.6 MB, free: 5.328 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001884/0.108, allocations: 219.2 kB / 407.8 MB, free: 5.086 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.659/1.766, allocations: 0 / 407.8 MB, free: 5.086 MB / 302.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe 2>&1) Environment - environmentSimulation: