Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.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.TestTrackingFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO",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.001091/0.001091, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001163/0.001163, allocations: 177.3 kB / 15.95 MB, free: 216 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.417/1.417, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05318/0.05318, allocations: 10.73 MB / 281.1 MB, free: 10.57 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.0009544/0.0009547, allocations: 12 kB / 341.7 MB, free: 23.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1381, allocations: 50.01 MB / 391.7 MB, free: 5.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.00196/0.1401, allocations: 1.468 MB / 393.2 MB, free: 4.211 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.1412, allocations: 0.6247 MB / 393.8 MB, free: 3.578 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.1414, allocations: 11.94 kB / 393.8 MB, free: 3.566 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.152e-05/0.1414, allocations: 11.86 kB / 393.8 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001257/0.1415, allocations: 31.88 kB / 393.8 MB, free: 3.523 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002875/0.1418, allocations: 79.83 kB / 393.9 MB, free: 3.445 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002394/0.1421, allocations: 131.7 kB / 394.1 MB, free: 3.316 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/0.1422, allocations: 48.73 kB / 394.1 MB, free: 3.273 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.1423, allocations: 75.69 kB / 394.2 MB, free: 3.199 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000121/0.1425, allocations: 83.53 kB / 394.3 MB, free: 3.117 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.914e-05/0.1425, allocations: 8 kB / 394.3 MB, free: 3.109 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.751e-05/0.1425, allocations: 12 kB / 394.3 MB, free: 3.098 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.086e-05/0.1426, allocations: 31.89 kB / 394.3 MB, free: 3.066 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.251e-05/0.1426, allocations: 53.58 kB / 394.4 MB, free: 3.008 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001442/0.1428, allocations: 131.9 kB / 394.5 MB, free: 2.879 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.1428, allocations: 0 / 394.5 MB, free: 2.879 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1428, allocations: 0 / 394.5 MB, free: 2.879 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.1428, allocations: 0 / 394.5 MB, free: 2.879 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009754/0.1438, allocations: 0.5394 MB / 395 MB, free: 2.285 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.1439, allocations: 12.03 kB / 395 MB, free: 2.273 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.881e-05/0.1439, allocations: 50.55 kB / 395.1 MB, free: 2.215 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.682e-05/0.144, allocations: 23.72 kB / 395.1 MB, free: 2.191 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003445/0.1443, allocations: 274.2 kB / 395.4 MB, free: 1.883 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.765e-05/0.1444, allocations: 101.1 kB / 395.5 MB, free: 1.766 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.861e-05/0.1445, allocations: 12 kB / 395.5 MB, free: 1.754 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004754/0.145, allocations: 197.5 kB / 395.7 MB, free: 1.555 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.145, allocations: 0 / 395.7 MB, free: 1.555 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.307e-05/0.145, allocations: 7.953 kB / 395.7 MB, free: 1.547 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.145, allocations: 4 kB / 395.7 MB, free: 1.543 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005413/0.1456, allocations: 179.8 kB / 395.9 MB, free: 1.367 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.1467, allocations: 0.5936 MB / 396.5 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005082/0.1472, allocations: 170.4 kB / 396.6 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.925e-05/0.1472, allocations: 4 kB / 396.6 MB, free: 0.543 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004187/0.1476, allocations: 159.3 kB / 396.8 MB, free: 384 kB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.402e-06/0.1477, allocations: 0 / 396.8 MB, free: 384 kB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009259/0.1486, allocations: 325.2 kB / 397.1 MB, free: 52 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.762e-05/0.1487, allocations: 59.39 kB / 397.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001777/0.1488, allocations: 203.2 kB / 397.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.222e-05/0.1489, allocations: 25.7 kB / 397.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.99e-05/0.149, allocations: 148.2 kB / 397.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.733e-05/0.149, allocations: 39.45 kB / 397.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.39e-05/0.1491, allocations: 8 kB / 397.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.1492, allocations: 326.8 kB / 397.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002833/0.1495, allocations: 91.92 kB / 398 MB, free: 15.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000303/0.1498, allocations: 127.3 kB / 398.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002942/0.1501, allocations: 120.6 kB / 398.2 MB, free: 14.87 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1501, allocations: 0 / 398.2 MB, free: 14.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0007028/0.1508, allocations: 299 kB / 398.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.089e-05/0.1509, allocations: 37.7 kB / 398.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.1509, allocations: 0 / 398.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.1509, allocations: 0 / 398.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007024/0.1516, allocations: 87.88 kB / 398.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/0.1516, allocations: 4 kB / 398.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002158/0.1519, allocations: 39.81 kB / 398.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/0.1519, allocations: 8 kB / 398.7 MB, free: 14.38 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,FOaw.ts,$PRE.TSsignal.pulseStart,TSsignal.pulseStart,$PRE.TrackRef.T_start,TrackRef.T_start,$PRE.TrackRef.count,TrackRef.count,FO.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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.0001279/0.152, allocations: 133.6 kB / 398.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.849e-05/0.1521, allocations: 23.8 kB / 398.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.479e-05/0.1521, allocations: 17.41 kB / 398.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.1521, allocations: 0 / 398.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.1521, allocations: 0 / 398.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1521, allocations: 3.984 kB / 398.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002795/0.1524, allocations: 277.4 kB / 399.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.1524, allocations: 0 / 399.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007687/0.1532, allocations: 83.88 kB / 399.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.1532, allocations: 4 kB / 399.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.492e-05/0.1532, allocations: 0 / 399.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1532, allocations: 0 / 399.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1533, allocations: 0 / 399.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009403/0.1542, allocations: 360.6 kB / 399.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.151e-05/0.1543, allocations: 92.92 kB / 399.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.424e-05/0.1543, allocations: 7.938 kB / 399.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001935/0.1545, allocations: 35.91 kB / 399.7 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.895e-05/0.1546, allocations: 23.95 kB / 399.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/0.1546, allocations: 4 kB / 399.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001084/0.1547, allocations: 148.6 kB / 399.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1547, allocations: 4 kB / 399.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000232/0.155, allocations: 39.84 kB / 399.9 MB, free: 13.05 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (FOtr.Y,FOaw.Y,FO.Y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,FOaw.ts,TSsignal.pulseStart,TrackRef.T_start,TrackRef.count) * Number of discrete states: 1 (TrackRef.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001142/0.1561, allocations: 0.8855 MB / 400.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006589/0.1568, allocations: 259.3 kB / 401.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1568, allocations: 4.062 kB / 401.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002896/0.1571, allocations: 99.88 kB / 401.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001949/0.1573, allocations: 21.53 kB / 401.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002382/0.1597, allocations: 1.716 MB / 402.9 MB, free: 9.973 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002852/0.16, allocations: 0.7436 MB / 403.6 MB, free: 9.203 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001022/0.1601, allocations: 25.53 kB / 403.7 MB, free: 9.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/0.1602, allocations: 59.42 kB / 403.7 MB, free: 9.121 MB / 302.1 MB Notification: Performance of SimCode: time 1.733e-06/0.1602, allocations: 0 / 403.7 MB, free: 9.121 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01365/0.1739, allocations: 3.598 MB / 407.3 MB, free: 5.637 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001906/0.1741, allocations: 210.4 kB / 407.5 MB, free: 5.398 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.844/2.018, allocations: 4.062 kB / 407.5 MB, free: 5.395 MB / 302.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe 2>&1) Environment - environmentSimulation: