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 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.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.006196/0.006196, allocations: 98.19 kB / 15.73 MB, free: 5.605 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.00158/0.00158, allocations: 199.7 kB / 16.67 MB, free: 5.531 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.444/1.444, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06356/0.06356, allocations: 11.2 MB / 301.7 MB, free: 4.055 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 63.25 kB / 417.3 MB, free: 19.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09306/0.09499, allocations: 51.99 MB / 469.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.003336/0.09836, allocations: 1.812 MB / 471.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.09969, allocations: 0.6039 MB / 471.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001836/0.0999, allocations: 15.88 kB / 471.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001522/0.1001, allocations: 23.73 kB / 471.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001179/0.1002, allocations: 31.66 kB / 471.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003717/0.1006, allocations: 103.8 kB / 471.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003433/0.101, allocations: 231.3 kB / 472.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001953/0.1012, allocations: 60.59 kB / 472.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001698/0.1014, allocations: 87.64 kB / 472.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.1015, allocations: 99.52 kB / 472.4 MB, free: 12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.202e-05/0.1016, allocations: 16 kB / 472.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.581e-05/0.1016, allocations: 16 kB / 472.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.528e-05/0.1017, allocations: 47.83 kB / 472.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001184/0.1018, allocations: 95.39 kB / 472.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002797/0.1021, allocations: 191.3 kB / 472.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1021, allocations: 0 / 472.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1021, allocations: 0 / 472.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.1021, allocations: 4 kB / 472.8 MB, free: 11.64 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001103/0.1032, allocations: 0.5704 MB / 473.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.1033, allocations: 15.83 kB / 473.3 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.188e-05/0.1033, allocations: 50.73 kB / 473.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.469e-05/0.1034, allocations: 28.8 kB / 473.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004313/0.1039, allocations: 299.8 kB / 473.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.871e-05/0.104, allocations: 93.67 kB / 473.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.92e-05/0.104, allocations: 20.36 kB / 473.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000484/0.1045, allocations: 189.5 kB / 474 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.1045, allocations: 7.938 kB / 474 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.787e-05/0.1046, allocations: 0 / 474 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.1046, allocations: 4 kB / 474 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000556/0.1051, allocations: 151.8 kB / 474.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.1063, allocations: 0.5665 MB / 474.7 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005289/0.1068, allocations: 146.5 kB / 474.9 MB, free: 9.332 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002652/0.1071, allocations: 80.92 kB / 475 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.1071, allocations: 0 / 475 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004085/0.1075, allocations: 147.2 kB / 475.1 MB, free: 9.094 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.543e-06/0.1076, allocations: 0 / 475.1 MB, free: 9.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009565/0.1085, allocations: 269.4 kB / 475.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.862e-05/0.1086, allocations: 59.34 kB / 475.4 MB, free: 8.754 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002361/0.1088, allocations: 211.1 kB / 475.6 MB, free: 8.535 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.897e-05/0.1089, allocations: 29.7 kB / 475.7 MB, free: 8.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.109, allocations: 148.3 kB / 475.8 MB, free: 8.352 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.984e-05/0.109, allocations: 35.69 kB / 475.8 MB, free: 8.316 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.729e-05/0.1091, allocations: 49.64 kB / 475.9 MB, free: 8.262 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.1093, allocations: 330.8 kB / 476.2 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002881/0.1096, allocations: 79.92 kB / 476.3 MB, free: 7.852 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000313/0.1099, allocations: 107.4 kB / 476.4 MB, free: 7.734 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005875/0.1105, allocations: 207.4 kB / 476.6 MB, free: 7.516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.103e-06/0.1105, allocations: 4 kB / 476.6 MB, free: 7.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0007202/0.1112, allocations: 271 kB / 476.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.132e-05/0.1113, allocations: 29.7 kB / 476.9 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.1113, allocations: 0 / 476.9 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.1113, allocations: 4 kB / 476.9 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007329/0.112, allocations: 75.97 kB / 477 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.1121, allocations: 4 kB / 477 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002258/0.1123, allocations: 35.86 kB / 477 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.13e-05/0.1123, allocations: 4 kB / 477 MB, free: 7.078 MB / 350.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.0001421/0.1125, allocations: 138.8 kB / 477.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.213e-05/0.1125, allocations: 15.91 kB / 477.2 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.407e-05/0.1126, allocations: 21.39 kB / 477.2 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.1126, allocations: 4 kB / 477.2 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1126, allocations: 0 / 477.2 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1126, allocations: 0 / 477.2 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003199/0.1129, allocations: 277.4 kB / 477.5 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1129, allocations: 0 / 477.5 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000786/0.1137, allocations: 71.94 kB / 477.5 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.1138, allocations: 7.938 kB / 477.5 MB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.1138, allocations: 0 / 477.5 MB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.1138, allocations: 3.938 kB / 477.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.1138, allocations: 0 / 477.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009306/0.1147, allocations: 321 kB / 477.9 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.846e-05/0.1148, allocations: 97.05 kB / 477.9 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/0.1149, allocations: 8 kB / 478 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001936/0.1151, allocations: 23.97 kB / 478 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.877e-05/0.1151, allocations: 23.97 kB / 478 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/0.1152, allocations: 4 kB / 478 MB, free: 5.988 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001355/0.1153, allocations: 148.6 kB / 478.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1153, allocations: 0 / 478.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002387/0.1156, allocations: 39.89 kB / 478.2 MB, free: 5.805 MB / 350.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.001254/0.1168, allocations: 0.8542 MB / 479 MB, free: 4.918 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006834/0.1175, allocations: 231.2 kB / 479.3 MB, free: 4.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1175, allocations: 3.938 kB / 479.3 MB, free: 4.676 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002957/0.1178, allocations: 83.94 kB / 479.4 MB, free: 4.594 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000271/0.1181, allocations: 30.81 kB / 479.4 MB, free: 4.562 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003653/0.1218, allocations: 2.219 MB / 481.6 MB, free: 2.242 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003681/0.1222, allocations: 0.7357 MB / 482.3 MB, free: 1.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001089/0.1223, allocations: 17.55 kB / 482.4 MB, free: 1.461 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/0.1224, allocations: 71.41 kB / 482.4 MB, free: 1.391 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1224, allocations: 4 kB / 482.4 MB, free: 1.387 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02921/0.1516, allocations: 4.116 MB / 486.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.357/8.509, allocations: 16.39 kB / 486.6 MB, free: 13.41 MB / 366.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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe 2>&1)