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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.007045/0.007045, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.001733/0.001733, allocations: 193.9 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1686/0.1686, allocations: 11.19 MB / 301.7 MB, free: 1.32 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001671/0.001671, allocations: 71.88 kB / 417.4 MB, free: 6.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1764/0.1781, allocations: 51.98 MB / 469.3 MB, free: 16.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI): time 0.00205/0.1802, allocations: 1.762 MB / 471.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006956/0.1809, allocations: 0.5834 MB / 471.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.56e-05/0.181, allocations: 6.281 kB / 471.7 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.512e-05/0.1811, allocations: 24.17 kB / 471.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.557e-05/0.1811, allocations: 31.06 kB / 471.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002083/0.1814, allocations: 88.41 kB / 471.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002038/0.1816, allocations: 209.3 kB / 472 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.655e-05/0.1817, allocations: 41.39 kB / 472.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.028e-05/0.1818, allocations: 85.42 kB / 472.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.1819, allocations: 91.52 kB / 472.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.197e-05/0.1819, allocations: 16.56 kB / 472.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.839e-05/0.182, allocations: 15.16 kB / 472.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.87e-05/0.182, allocations: 34.5 kB / 472.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.653e-05/0.1821, allocations: 84.41 kB / 472.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000165/0.1822, allocations: 172.4 kB / 472.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1822, allocations: 1.781 kB / 472.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1822, allocations: 0 / 472.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.1823, allocations: 0 / 472.6 MB, free: 14.56 MB / 350.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.0008196/0.1831, allocations: 0.5824 MB / 473.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.811e-05/0.1831, allocations: 14.36 kB / 473.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.121e-05/0.1832, allocations: 40.55 kB / 473.2 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.3e-05/0.1832, allocations: 20.95 kB / 473.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002313/0.1834, allocations: 264.6 kB / 473.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.957e-05/0.1835, allocations: 67.42 kB / 473.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.945e-05/0.1835, allocations: 14.69 kB / 473.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004314/0.184, allocations: 195.8 kB / 473.7 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.184, allocations: 5.188 kB / 473.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.184, allocations: 5.312 kB / 473.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.184, allocations: 2.594 kB / 473.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005524/0.1846, allocations: 150.6 kB / 473.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006895/0.1853, allocations: 0.6383 MB / 474.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00052/0.1858, allocations: 159.8 kB / 474.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002588/0.1861, allocations: 79.84 kB / 474.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.252e-05/0.1861, allocations: 1.938 kB / 474.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003682/0.1864, allocations: 175.9 kB / 475 MB, free: 12.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.303e-06/0.1865, allocations: 0 / 475 MB, free: 12.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008802/0.1873, allocations: 285.9 kB / 475.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.712e-05/0.1874, allocations: 62.16 kB / 475.3 MB, free: 12.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.1875, allocations: 197.4 kB / 475.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.572e-05/0.1875, allocations: 32.45 kB / 475.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.766e-05/0.1876, allocations: 133.9 kB / 475.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.351e-05/0.1876, allocations: 45.17 kB / 475.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.239e-05/0.1877, allocations: 59.44 kB / 475.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.558e-05/0.1877, allocations: 327 kB / 476.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002921/0.188, allocations: 92.23 kB / 476.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002914/0.1883, allocations: 149.7 kB / 476.3 MB, free: 11.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005418/0.1888, allocations: 258.2 kB / 476.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1889, allocations: 0 / 476.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006943/0.1896, allocations: 351.9 kB / 476.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.1896, allocations: 63.11 kB / 477 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.1896, allocations: 1.625 kB / 477 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.1896, allocations: 6.625 kB / 477 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003638/0.19, allocations: 60.92 kB / 477 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.19, allocations: 3.625 kB / 477 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002377/0.1902, allocations: 44.14 kB / 477.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.809e-05/0.1903, allocations: 10.78 kB / 477.1 MB, free: 11.13 MB / 350.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,TrackRef.count,$PRE.TrackRef.count,TrackRef.T_start,$PRE.TrackRef.T_start,TSsignal.pulseStart,$PRE.TSsignal.pulseStart,Itr.ts,Input.count,$PRE.Input.count,Input.T_start,$PRE.Input.T_start,$whenCondition1,$whenCondition3,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.076e-05/0.1903, allocations: 145 kB / 477.2 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.324e-05/0.1904, allocations: 19.84 kB / 477.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.589e-05/0.1904, allocations: 22.03 kB / 477.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.1904, allocations: 1.094 kB / 477.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.1904, allocations: 0 / 477.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.1904, allocations: 8.984 kB / 477.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001284/0.1906, allocations: 242.9 kB / 477.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1906, allocations: 4.969 kB / 477.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003777/0.191, allocations: 50.3 kB / 477.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.191, allocations: 1.125 kB / 477.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.492e-05/0.191, allocations: 9.141 kB / 477.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.191, allocations: 1.156 kB / 477.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.191, allocations: 0 / 477.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008848/0.1919, allocations: 342.3 kB / 477.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.615e-05/0.1919, allocations: 93.83 kB / 478 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.845e-05/0.1919, allocations: 5.859 kB / 478 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.1922, allocations: 40.55 kB / 478.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.298e-05/0.1922, allocations: 26.78 kB / 478.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.035e-05/0.1923, allocations: 4.219 kB / 478.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.523e-05/0.1923, allocations: 143 kB / 478.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1923, allocations: 0 / 478.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002186/0.1926, allocations: 42.33 kB / 478.3 MB, free: 10.2 MB / 350.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 (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.001007/0.1936, allocations: 0.8854 MB / 479.2 MB, free: 9.461 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006469/0.1942, allocations: 318.8 kB / 479.5 MB, free: 9.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1943, allocations: 1.438 kB / 479.5 MB, free: 9.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002996/0.1946, allocations: 107.3 kB / 479.6 MB, free: 9.199 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002206/0.1948, allocations: 28.2 kB / 479.6 MB, free: 9.184 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002686/0.1975, allocations: 2.305 MB / 481.9 MB, free: 7.355 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.801e-05/0.1976, allocations: 0.7249 MB / 482.6 MB, free: 6.637 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.38e-05/0.1977, allocations: 15.7 kB / 482.6 MB, free: 6.633 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.717e-05/0.1977, allocations: 52.92 kB / 482.7 MB, free: 6.59 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1978, allocations: 0 / 482.7 MB, free: 6.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.444/1.642, allocations: 4.342 MB / 487 MB, free: 4.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.789/10.43, allocations: 11.7 kB / 487 MB, free: 4.426 MB / 350.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/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)