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.001232/0.001232, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 194.6 kB / 16.53 MB, free: 6.391 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.472/1.472, allocations: 205.1 MB / 222.4 MB, free: 4.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05997/0.05997, allocations: 10.74 MB / 280.5 MB, free: 10.52 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.001478/0.001478, allocations: 71.89 kB / 340.7 MB, free: 23.24 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08281/0.0843, allocations: 49.02 MB / 389.7 MB, free: 6.156 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.003018/0.08735, allocations: 1.811 MB / 391.5 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.0885, allocations: 0.6438 MB / 392.1 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.08866, allocations: 11.94 kB / 392.1 MB, free: 3.66 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001181/0.0888, allocations: 27.67 kB / 392.2 MB, free: 3.633 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.586e-05/0.08891, allocations: 35.66 kB / 392.2 MB, free: 3.598 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003118/0.08923, allocations: 99.8 kB / 392.3 MB, free: 3.5 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002811/0.08952, allocations: 231.3 kB / 392.5 MB, free: 3.273 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001484/0.08967, allocations: 60.61 kB / 392.6 MB, free: 3.219 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000129/0.08981, allocations: 91.64 kB / 392.7 MB, free: 3.129 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001354/0.08996, allocations: 95.45 kB / 392.8 MB, free: 3.035 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.048e-05/0.09, allocations: 16 kB / 392.8 MB, free: 3.02 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.314e-05/0.09004, allocations: 20 kB / 392.8 MB, free: 3 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.101e-05/0.0901, allocations: 43.78 kB / 392.8 MB, free: 2.957 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.09021, allocations: 99.44 kB / 392.9 MB, free: 2.859 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002099/0.09042, allocations: 183.5 kB / 393.1 MB, free: 2.68 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.09044, allocations: 4 kB / 393.1 MB, free: 2.676 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.09044, allocations: 4 kB / 393.1 MB, free: 2.672 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.09046, allocations: 0 / 393.1 MB, free: 2.672 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.001081/0.09154, allocations: 0.5589 MB / 393.7 MB, free: 2.059 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.09159, allocations: 11.89 kB / 393.7 MB, free: 2.047 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.167e-05/0.09165, allocations: 54.73 kB / 393.7 MB, free: 1.984 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.396e-05/0.09172, allocations: 24.66 kB / 393.8 MB, free: 1.961 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003347/0.09206, allocations: 283.2 kB / 394 MB, free: 1.645 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.287e-05/0.09214, allocations: 93.67 kB / 394.1 MB, free: 1.535 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.424e-05/0.0922, allocations: 16.38 kB / 394.2 MB, free: 1.52 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004582/0.09267, allocations: 185.4 kB / 394.3 MB, free: 1.332 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.09269, allocations: 3.984 kB / 394.3 MB, free: 1.328 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.147e-05/0.09271, allocations: 8 kB / 394.3 MB, free: 1.32 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.09273, allocations: 4 kB / 394.4 MB, free: 1.316 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005188/0.09325, allocations: 147.9 kB / 394.5 MB, free: 1.172 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.09431, allocations: 0.5896 MB / 395.1 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004905/0.09481, allocations: 142.4 kB / 395.2 MB, free: 392 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000264/0.09509, allocations: 76.78 kB / 395.3 MB, free: 312 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.09512, allocations: 0 / 395.3 MB, free: 312 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004156/0.09554, allocations: 151.2 kB / 395.4 MB, free: 148 kB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.563e-06/0.09555, allocations: 192 / 395.4 MB, free: 148 kB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009251/0.09648, allocations: 273.2 kB / 395.7 MB, free: 15.87 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.408e-05/0.09654, allocations: 55.41 kB / 395.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001871/0.09673, allocations: 211.1 kB / 396 MB, free: 15.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.09676, allocations: 25.7 kB / 396 MB, free: 15.56 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.936e-05/0.09686, allocations: 144.2 kB / 396.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.254e-05/0.09691, allocations: 35.55 kB / 396.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.594e-05/0.09699, allocations: 45.69 kB / 396.2 MB, free: 15.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.0971, allocations: 334.8 kB / 396.5 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002843/0.09739, allocations: 75.92 kB / 396.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002885/0.09769, allocations: 114.8 kB / 396.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005318/0.09823, allocations: 197 kB / 396.9 MB, free: 14.58 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.09824, allocations: 0 / 396.9 MB, free: 14.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006644/0.09892, allocations: 278.8 kB / 397.2 MB, free: 14.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.516e-05/0.09896, allocations: 33.69 kB / 397.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.09898, allocations: 4 kB / 397.2 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.099, allocations: 0 / 397.2 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00073/0.09973, allocations: 68.05 kB / 397.3 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.09975, allocations: 7.984 kB / 397.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002133/0.09997, allocations: 39.75 kB / 397.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.009e-05/0.1, allocations: 8 kB / 397.4 MB, free: 14.13 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.0001148/0.1001, allocations: 133.7 kB / 397.5 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.225e-05/0.1002, allocations: 15.81 kB / 397.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.217e-05/0.1002, allocations: 25.39 kB / 397.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.1002, allocations: 0 / 397.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1002, allocations: 0 / 397.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.1003, allocations: 0 / 397.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000241/0.1005, allocations: 277.4 kB / 397.8 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.1005, allocations: 4 kB / 397.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007925/0.1013, allocations: 67.94 kB / 397.9 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.1013, allocations: 7.938 kB / 397.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.1014, allocations: 4 kB / 397.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.1014, allocations: 0 / 397.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.1014, allocations: 0 / 397.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008804/0.1023, allocations: 316.4 kB / 398.2 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.333e-05/0.1023, allocations: 100.8 kB / 398.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.16e-05/0.1024, allocations: 4 kB / 398.3 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000205/0.1026, allocations: 31.97 kB / 398.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.3e-05/0.1026, allocations: 19.97 kB / 398.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-05/0.1027, allocations: 4 kB / 398.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001124/0.1028, allocations: 148.6 kB / 398.5 MB, free: 12.9 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1028, allocations: 0 / 398.5 MB, free: 12.9 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000232/0.103, allocations: 32 kB / 398.5 MB, free: 12.87 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.001193/0.1042, allocations: 0.858 MB / 399.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006461/0.1049, allocations: 235.2 kB / 399.6 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1049, allocations: 3.938 kB / 399.6 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002798/0.1052, allocations: 84.58 kB / 399.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002498/0.1054, allocations: 25.42 kB / 399.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003219/0.1087, allocations: 2.24 MB / 402 MB, free: 9.281 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002744/0.109, allocations: 0.728 MB / 402.7 MB, free: 8.527 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001026/0.1091, allocations: 21.55 kB / 402.7 MB, free: 8.508 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.1092, allocations: 75.41 kB / 402.8 MB, free: 8.434 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1092, allocations: 0 / 402.8 MB, free: 8.434 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0234/0.1326, allocations: 4.049 MB / 406.8 MB, free: 4.445 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.701/7.834, allocations: 8.438 kB / 406.8 MB, free: 4.438 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)