Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 106.5 kB / 16.4 MB, free: 6.512 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 191.7 kB / 19.35 MB, free: 3.734 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 222.9 MB / 245.1 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06468/0.06468, allocations: 11.21 MB / 308.4 MB, free: 1.957 MB / 238.1 MB " [Timeout remaining time 180] 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.TestTrackingP,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 64.55 kB / 426.1 MB, free: 18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09145/0.09338, allocations: 51.97 MB / 478 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP): time 0.003333/0.09676, allocations: 1.735 MB / 479.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001022/0.09782, allocations: 0.5454 MB / 480.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.679e-05/0.09793, allocations: 4 kB / 480.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001075/0.09804, allocations: 15.75 kB / 480.3 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.719e-05/0.09814, allocations: 31.73 kB / 480.4 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002412/0.09839, allocations: 63.84 kB / 480.4 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002415/0.09864, allocations: 183.5 kB / 480.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.09877, allocations: 37.77 kB / 480.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.09892, allocations: 67.7 kB / 480.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.09903, allocations: 79.59 kB / 480.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.446e-05/0.09908, allocations: 12 kB / 480.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.61e-05/0.09911, allocations: 12 kB / 480.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.409e-05/0.09916, allocations: 31.91 kB / 480.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.446e-05/0.09925, allocations: 63.61 kB / 480.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000208/0.09946, allocations: 139.3 kB / 481 MB, free: 10.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.09947, allocations: 4 kB / 481.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.09948, allocations: 0 / 481.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.0995, allocations: 4 kB / 481.1 MB, free: 10.95 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0009833/0.1005, allocations: 0.5081 MB / 481.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.1005, allocations: 11.89 kB / 481.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.436e-05/0.1006, allocations: 42.73 kB / 481.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.638e-05/0.1006, allocations: 16.84 kB / 481.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003507/0.101, allocations: 252 kB / 481.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.779e-05/0.1011, allocations: 67.95 kB / 481.9 MB, free: 9.941 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.218e-05/0.1011, allocations: 4.375 kB / 481.9 MB, free: 9.938 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003928/0.1015, allocations: 144.1 kB / 482.1 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.1015, allocations: 0 / 482.1 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.1016, allocations: 4 kB / 482.1 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.1016, allocations: 3.938 kB / 482.1 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005154/0.1021, allocations: 123.9 kB / 482.2 MB, free: 9.664 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007845/0.1029, allocations: 436.4 kB / 482.6 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004722/0.1034, allocations: 122.5 kB / 482.8 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002438/0.1036, allocations: 60.81 kB / 482.8 MB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.1037, allocations: 7.922 kB / 482.8 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003697/0.104, allocations: 127.3 kB / 483 MB, free: 8.852 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.104, allocations: 3.938 kB / 483 MB, free: 8.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0008696/0.1049, allocations: 229.5 kB / 483.2 MB, free: 8.617 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.982e-05/0.105, allocations: 59.41 kB / 483.2 MB, free: 8.547 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001791/0.1052, allocations: 187.9 kB / 483.4 MB, free: 8.352 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.73e-05/0.1052, allocations: 33.69 kB / 483.5 MB, free: 8.312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.43e-05/0.1053, allocations: 124.4 kB / 483.6 MB, free: 8.188 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.419e-05/0.1053, allocations: 23.8 kB / 483.6 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.205e-05/0.1054, allocations: 37.7 kB / 483.6 MB, free: 8.121 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.1056, allocations: 326.8 kB / 484 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002676/0.1059, allocations: 71.92 kB / 484 MB, free: 7.723 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002767/0.1062, allocations: 91.31 kB / 484.1 MB, free: 7.621 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005055/0.1067, allocations: 173 kB / 484.3 MB, free: 7.434 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.1067, allocations: 0 / 484.3 MB, free: 7.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006339/0.1073, allocations: 239 kB / 484.5 MB, free: 7.188 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.124e-05/0.1074, allocations: 37.64 kB / 484.6 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.1074, allocations: 0 / 484.6 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.1074, allocations: 4 kB / 484.6 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001879/0.1076, allocations: 31.91 kB / 484.6 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.1076, allocations: 4 kB / 484.6 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002/0.1078, allocations: 35.97 kB / 484.6 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.1078, allocations: 8.375 kB / 484.6 MB, free: 7.062 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,Ptr.ts,$whenCondition2,P.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * 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.0001096/0.108, allocations: 122.7 kB / 484.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.716e-05/0.108, allocations: 19.83 kB / 484.8 MB, free: 6.914 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.225e-05/0.108, allocations: 17.39 kB / 484.8 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.1081, allocations: 7.938 kB / 484.8 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.1081, allocations: 0 / 484.8 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1081, allocations: 0 / 484.8 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002151/0.1083, allocations: 229.5 kB / 485 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1083, allocations: 4 kB / 485 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001502/0.1085, allocations: 23.91 kB / 485.1 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.1085, allocations: 7.938 kB / 485.1 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.1085, allocations: 4 kB / 485.1 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.1085, allocations: 0 / 485.1 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1085, allocations: 0 / 485.1 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005783/0.1091, allocations: 204.8 kB / 485.3 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.057e-05/0.1092, allocations: 89.02 kB / 485.4 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.843e-05/0.1092, allocations: 7.938 kB / 485.4 MB, free: 6.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001826/0.1094, allocations: 23.97 kB / 485.4 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.843e-05/0.1095, allocations: 19.97 kB / 485.4 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.1095, allocations: 0 / 485.4 MB, free: 6.195 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001161/0.1096, allocations: 136.1 kB / 485.5 MB, free: 6.062 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1096, allocations: 0 / 485.5 MB, free: 6.062 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002192/0.1098, allocations: 31.95 kB / 485.6 MB, free: 6.031 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,Ptr.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 (10): * Single equations (assignments): 7 * 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.0009166/0.1108, allocations: 0.7372 MB / 486.3 MB, free: 5.266 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006383/0.1114, allocations: 203.2 kB / 486.5 MB, free: 5.055 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1114, allocations: 384 / 486.5 MB, free: 5.055 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002829/0.1117, allocations: 83.81 kB / 486.6 MB, free: 4.973 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.112, allocations: 27.16 kB / 486.6 MB, free: 4.949 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003316/0.1153, allocations: 1.928 MB / 488.5 MB, free: 2.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.1157, allocations: 0.7123 MB / 489.3 MB, free: 2.172 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.333e-05/0.1158, allocations: 17.08 kB / 489.3 MB, free: 2.156 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.1159, allocations: 43.42 kB / 489.3 MB, free: 2.113 MB / 350.1 MB Notification: Performance of SimCode: time 2.645e-06/0.1159, allocations: 0 / 489.3 MB, free: 2.113 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02526/0.1412, allocations: 3.464 MB / 492.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.822/7.963, allocations: 12.05 kB / 492.8 MB, free: 14.79 MB / 366.1 MB " [Timeout remaining time 652] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.55959613493178] Failed to read output from testmodel.py, exit status != 0: 8.028907489031553 8.042806582 7.940787713 Calling exit ...