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.0009903/0.0009903, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006323/0.006324, allocations: 170.1 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.466/1.466, allocations: 205.4 MB / 222.4 MB, free: 5.785 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05399/0.05399, allocations: 10.75 MB / 281.5 MB, free: 10.67 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.0004629/0.0004629, allocations: 15.98 kB / 342.3 MB, free: 23.43 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07908/0.07955, allocations: 50.01 MB / 392.3 MB, free: 5.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.001744/0.08134, allocations: 1.522 MB / 393.9 MB, free: 3.816 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008692/0.08222, allocations: 0.6439 MB / 394.5 MB, free: 3.164 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.13e-05/0.08232, allocations: 7.938 kB / 394.5 MB, free: 3.156 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.59e-05/0.08241, allocations: 11.81 kB / 394.5 MB, free: 3.145 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001096/0.08253, allocations: 23.8 kB / 394.6 MB, free: 3.121 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002384/0.08277, allocations: 95.81 kB / 394.6 MB, free: 3.027 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002116/0.08299, allocations: 211.4 kB / 394.9 MB, free: 2.82 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.08314, allocations: 52.61 kB / 394.9 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/0.08324, allocations: 79.58 kB / 395 MB, free: 2.695 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001112/0.08336, allocations: 79.55 kB / 395.1 MB, free: 2.617 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.748e-05/0.0834, allocations: 12 kB / 395.1 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.266e-05/0.08343, allocations: 8 kB / 395.1 MB, free: 2.598 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.702e-05/0.08348, allocations: 43.75 kB / 395.1 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.08359, allocations: 105.2 kB / 395.2 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001777/0.08377, allocations: 171.5 kB / 395.4 MB, free: 2.277 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.08378, allocations: 0 / 395.4 MB, free: 2.277 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.08379, allocations: 0 / 395.4 MB, free: 2.277 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.0838, allocations: 0 / 395.4 MB, free: 2.277 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.0009063/0.08471, allocations: 0.5469 MB / 395.9 MB, free: 1.68 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.08475, allocations: 8.031 kB / 395.9 MB, free: 1.672 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.801e-05/0.0848, allocations: 50.73 kB / 396 MB, free: 1.613 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.534e-05/0.08486, allocations: 32.66 kB / 396 MB, free: 1.582 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003025/0.08517, allocations: 279.4 kB / 396.3 MB, free: 1.27 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.865e-05/0.08526, allocations: 93.66 kB / 396.4 MB, free: 1.16 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.439e-05/0.08531, allocations: 24.22 kB / 396.4 MB, free: 1.137 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004677/0.08579, allocations: 209.4 kB / 396.6 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.184e-06/0.0858, allocations: 0 / 396.6 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.09e-05/0.08583, allocations: 7.984 kB / 396.6 MB, free: 0.918 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.08584, allocations: 0 / 396.6 MB, free: 0.918 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005243/0.08637, allocations: 171.9 kB / 396.8 MB, free: 0.75 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009874/0.08737, allocations: 0.5975 MB / 397.4 MB, free: 104 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005092/0.08789, allocations: 174.4 kB / 397.6 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002587/0.08816, allocations: 92.8 kB / 397.7 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.08819, allocations: 0 / 397.7 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003894/0.08858, allocations: 155.3 kB / 397.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.372e-06/0.08859, allocations: 192 / 397.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008853/0.08948, allocations: 321.2 kB / 398.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/0.08953, allocations: 55.41 kB / 398.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001627/0.0897, allocations: 211.1 kB / 398.4 MB, free: 15.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.08973, allocations: 29.7 kB / 398.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.642e-05/0.08982, allocations: 148.2 kB / 398.6 MB, free: 14.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.08986, allocations: 31.55 kB / 398.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.027e-05/0.08991, allocations: 29.7 kB / 398.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.858e-05/0.09001, allocations: 330.8 kB / 398.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000279/0.09029, allocations: 99.92 kB / 399 MB, free: 14.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002848/0.09059, allocations: 123.4 kB / 399.2 MB, free: 14.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005252/0.09112, allocations: 232 kB / 399.4 MB, free: 14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.09113, allocations: 0 / 399.4 MB, free: 14 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006551/0.09179, allocations: 298.9 kB / 399.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/0.09183, allocations: 37.69 kB / 399.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-06/0.09184, allocations: 0 / 399.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.728e-06/0.09185, allocations: 0 / 399.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006918/0.09255, allocations: 84.02 kB / 399.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.09257, allocations: 3.984 kB / 399.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002086/0.09278, allocations: 39.91 kB / 399.8 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.978e-05/0.09281, allocations: 8 kB / 399.8 MB, free: 13.52 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,TrackRef.count,$PRE.TrackRef.count,TrackRef.T_start,$PRE.TrackRef.T_start,TSsignal.pulseStart,$PRE.TSsignal.pulseStart,FOaw.ts,$whenCondition2,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001052/0.09292, allocations: 133.7 kB / 400 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.632e-05/0.09295, allocations: 19.72 kB / 400 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.111e-05/0.09301, allocations: 25.39 kB / 400 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.09302, allocations: 3.938 kB / 400 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.09303, allocations: 0 / 400 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.09303, allocations: 4 kB / 400 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002236/0.09326, allocations: 273.5 kB / 400.3 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.09327, allocations: 3.938 kB / 400.3 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007556/0.09404, allocations: 79.94 kB / 400.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.09405, allocations: 7.938 kB / 400.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.09407, allocations: 0 / 400.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.09407, allocations: 0 / 400.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.09408, allocations: 0 / 400.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008794/0.09496, allocations: 361 kB / 400.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.929e-05/0.09502, allocations: 92.91 kB / 400.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.426e-05/0.09506, allocations: 11.98 kB / 400.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001979/0.09526, allocations: 31.97 kB / 400.9 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.938e-05/0.09534, allocations: 19.97 kB / 400.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.033e-05/0.09536, allocations: 4 kB / 400.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001115/0.09547, allocations: 148.6 kB / 401 MB, free: 12.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09548, allocations: 0 / 401 MB, free: 12.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002252/0.09571, allocations: 39.89 kB / 401.1 MB, free: 12.19 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001128/0.09685, allocations: 0.8973 MB / 402 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006104/0.09747, allocations: 259.2 kB / 402.2 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.09748, allocations: 4 kB / 402.2 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002804/0.09777, allocations: 103.9 kB / 402.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002208/0.098, allocations: 16.67 kB / 402.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003027/0.101, allocations: 2.356 MB / 404.7 MB, free: 8.422 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002423/0.1013, allocations: 0.7435 MB / 405.4 MB, free: 7.652 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.171e-05/0.1014, allocations: 17.55 kB / 405.5 MB, free: 7.637 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.966e-05/0.1015, allocations: 67.41 kB / 405.5 MB, free: 7.57 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1015, allocations: 0 / 405.5 MB, free: 7.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3146/0.4161, allocations: 3.633 MB / 409.2 MB, free: 4.039 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002396/0.4164, allocations: 242.8 kB / 409.4 MB, free: 3.785 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.803/2.22, allocations: 0 / 409.4 MB, free: 3.785 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/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)