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.005894/0.005894, allocations: 102 kB / 15.73 MB, free: 6.051 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.001246/0.001246, allocations: 195 kB / 16.68 MB, free: 5.969 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.387/1.387, allocations: 205.1 MB / 222.6 MB, free: 4.379 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0592/0.0592, allocations: 10.75 MB / 280.6 MB, free: 10.28 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.00198/0.001981, allocations: 68.52 kB / 390.3 MB, free: 5.496 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.3265, allocations: 49.02 MB / 439.4 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.003377/0.3299, allocations: 1.81 MB / 441.2 MB, free: 3.789 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001269/0.3312, allocations: 0.6602 MB / 441.8 MB, free: 3.32 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001813/0.3314, allocations: 8.406 kB / 441.8 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.3316, allocations: 24.91 kB / 441.9 MB, free: 3.297 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001448/0.3318, allocations: 34.2 kB / 441.9 MB, free: 3.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003623/0.3321, allocations: 102.9 kB / 442 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003146/0.3325, allocations: 232.7 kB / 442.2 MB, free: 3.105 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001617/0.3326, allocations: 65.16 kB / 442.3 MB, free: 3.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001591/0.3328, allocations: 101.5 kB / 442.4 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001465/0.3329, allocations: 88.64 kB / 442.5 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.457e-05/0.333, allocations: 16.5 kB / 442.5 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.56e-05/0.333, allocations: 17.97 kB / 442.5 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.573e-05/0.3331, allocations: 47.94 kB / 442.6 MB, free: 2.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.366e-05/0.3332, allocations: 89.38 kB / 442.6 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002726/0.3335, allocations: 188.7 kB / 442.8 MB, free: 2.801 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3335, allocations: 4 kB / 442.8 MB, free: 2.797 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3335, allocations: 4.969 kB / 442.8 MB, free: 2.793 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.3335, allocations: 0.7969 kB / 442.8 MB, free: 2.793 MB / 318.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.001036/0.3346, allocations: 0.5617 MB / 443.4 MB, free: 2.309 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.3346, allocations: 17.7 kB / 443.4 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.408e-05/0.3347, allocations: 54.3 kB / 443.5 MB, free: 2.246 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.988e-05/0.3347, allocations: 26.7 kB / 443.5 MB, free: 2.234 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003918/0.3351, allocations: 294.8 kB / 443.8 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.407e-05/0.3352, allocations: 98.34 kB / 443.9 MB, free: 1.883 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.332e-05/0.3353, allocations: 19.98 kB / 443.9 MB, free: 1.875 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004795/0.3357, allocations: 179.6 kB / 444.1 MB, free: 1.801 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.3358, allocations: 0.6094 kB / 444.1 MB, free: 1.801 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.22e-05/0.3358, allocations: 5.656 kB / 444.1 MB, free: 1.797 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.3358, allocations: 2.656 kB / 444.1 MB, free: 1.797 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005088/0.3363, allocations: 145.4 kB / 444.2 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.3374, allocations: 0.5745 MB / 444.8 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004769/0.3379, allocations: 140.4 kB / 444.9 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002429/0.3381, allocations: 78.67 kB / 445 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.3381, allocations: 1.469 kB / 445 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003829/0.3385, allocations: 149 kB / 445.2 MB, free: 1.211 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.964e-06/0.3385, allocations: 0 / 445.2 MB, free: 1.211 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008924/0.3394, allocations: 268.3 kB / 445.4 MB, free: 1.125 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.022e-05/0.3395, allocations: 53.92 kB / 445.5 MB, free: 1.062 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001716/0.3397, allocations: 201.1 kB / 445.7 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.3397, allocations: 33 kB / 445.7 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.109e-05/0.3398, allocations: 141.5 kB / 445.8 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.674e-05/0.3398, allocations: 49.2 kB / 445.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.655e-05/0.3399, allocations: 41.39 kB / 445.9 MB, free: 0.707 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.711e-05/0.34, allocations: 333.1 kB / 446.3 MB, free: 392 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002837/0.3403, allocations: 83.23 kB / 446.3 MB, free: 368 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002731/0.3406, allocations: 110.6 kB / 446.4 MB, free: 312 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004935/0.3411, allocations: 207.8 kB / 446.6 MB, free: 196 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3411, allocations: 0 / 446.6 MB, free: 196 kB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006566/0.3417, allocations: 268.5 kB / 446.9 MB, free: 72 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.306e-05/0.3418, allocations: 33.69 kB / 446.9 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.3418, allocations: 4.938 kB / 446.9 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.3418, allocations: 1.969 kB / 447 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006983/0.3425, allocations: 71.62 kB / 447 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.3425, allocations: 3.172 kB / 447 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002189/0.3428, allocations: 36.55 kB / 447.1 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.255e-05/0.3428, allocations: 10.59 kB / 447.1 MB, free: 16 kB / 318.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.0001406/0.3429, allocations: 131.3 kB / 447.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.689e-05/0.343, allocations: 15.95 kB / 447.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.886e-05/0.343, allocations: 25.11 kB / 447.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.882e-06/0.3431, allocations: 5.719 kB / 447.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3431, allocations: 0 / 447.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.3431, allocations: 1.781 kB / 447.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003126/0.3434, allocations: 276.4 kB / 447.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3434, allocations: 7.938 kB / 447.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007915/0.3442, allocations: 67.95 kB / 447.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.3442, allocations: 1.156 kB / 447.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.7e-05/0.3443, allocations: 5.828 kB / 447.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.3443, allocations: 1.219 kB / 447.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3443, allocations: 0 / 447.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009206/0.3452, allocations: 317.2 kB / 447.9 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.666e-05/0.3453, allocations: 98.23 kB / 448 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.636e-05/0.3453, allocations: 5.188 kB / 448 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001894/0.3455, allocations: 25.12 kB / 448 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.831e-05/0.3456, allocations: 23.97 kB / 448.1 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.3456, allocations: 3.562 kB / 448.1 MB, free: 15.33 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001344/0.3458, allocations: 147.9 kB / 448.2 MB, free: 15.22 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3458, allocations: 1.219 kB / 448.2 MB, free: 15.22 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002673/0.3461, allocations: 35 kB / 448.2 MB, free: 15.21 MB / 334.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.001142/0.3472, allocations: 0.8599 MB / 449.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006304/0.3479, allocations: 231.9 kB / 449.3 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3479, allocations: 0 / 449.3 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002711/0.3481, allocations: 89.14 kB / 449.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002577/0.3484, allocations: 31.91 kB / 449.4 MB, free: 14.28 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003412/0.3518, allocations: 2.22 MB / 451.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003263/0.3522, allocations: 0.7339 MB / 452.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001131/0.3523, allocations: 24.55 kB / 452.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.3524, allocations: 65.03 kB / 452.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3524, allocations: 0 / 452.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.026/0.3784, allocations: 4.206 MB / 456.7 MB, free: 9.586 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.116/8.494, allocations: 5.188 kB / 456.7 MB, free: 9.582 MB / 334.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)