Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.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.001336/0.001336, allocations: 110.8 kB / 16.41 MB, free: 6.488 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.001328/0.001328, allocations: 195.7 kB / 19.36 MB, free: 3.73 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.397/1.397, allocations: 222.9 MB / 245.1 MB, free: 15 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.06476/0.06476, allocations: 11.21 MB / 308.4 MB, free: 1.922 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.Examples.TestPD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002008, allocations: 64.36 kB / 426.1 MB, free: 17.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08873/0.09075, allocations: 51.98 MB / 478 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_bias): time 0.003456/0.09425, allocations: 2.255 MB / 480.3 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001738/0.09601, allocations: 1.022 MB / 481.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001664/0.0962, allocations: 15.88 kB / 481.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002793/0.0965, allocations: 87.3 kB / 481.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001342/0.09665, allocations: 75.48 kB / 481.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008365/0.09749, allocations: 335.3 kB / 481.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006635/0.09817, allocations: 0.6223 MB / 482.4 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001797/0.09836, allocations: 89.28 kB / 482.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000263/0.09863, allocations: 219.3 kB / 482.7 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003253/0.09896, allocations: 247 kB / 483 MB, free: 8.965 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.396e-05/0.09904, allocations: 39.98 kB / 483 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000177/0.09923, allocations: 107.9 kB / 483.1 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001754/0.09941, allocations: 159.5 kB / 483.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002147/0.09963, allocations: 238.5 kB / 483.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005723/0.1002, allocations: 0.525 MB / 484 MB, free: 7.902 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1002, allocations: 0 / 484 MB, free: 7.902 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1002, allocations: 0 / 484 MB, free: 7.902 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.6e-05/0.1002, allocations: 0 / 484 MB, free: 7.902 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: 108 * Number of variables: 108 Notification: Performance of Generate backend data structure: time 0.001393/0.1016, allocations: 0.9011 MB / 484.9 MB, free: 6.941 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.1017, allocations: 15.89 kB / 485 MB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001039/0.1018, allocations: 82.72 kB / 485 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.799e-05/0.1019, allocations: 64.52 kB / 485.1 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006034/0.1025, allocations: 466 kB / 485.6 MB, free: 6.281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.413e-05/0.1026, allocations: 29.38 kB / 485.6 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.464e-05/0.1027, allocations: 52.33 kB / 485.6 MB, free: 6.199 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008526/0.1035, allocations: 0.5587 MB / 486.2 MB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.754e-05/0.1035, allocations: 4 kB / 486.2 MB, free: 5.602 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.354e-05/0.1036, allocations: 16 kB / 486.2 MB, free: 5.586 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.1036, allocations: 12 kB / 486.2 MB, free: 5.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007159/0.1043, allocations: 403.6 kB / 486.6 MB, free: 5.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003152/0.1075, allocations: 2.151 MB / 488.8 MB, free: 2.934 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005684/0.1081, allocations: 283.6 kB / 489 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002793/0.1084, allocations: 180.8 kB / 489.2 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.182e-05/0.1084, allocations: 4 kB / 489.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003986/0.1088, allocations: 260.9 kB / 489.5 MB, free: 2.191 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.144e-06/0.1088, allocations: 0 / 489.5 MB, free: 2.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.001046/0.1099, allocations: 0.5901 MB / 490.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.527e-05/0.11, allocations: 85.11 kB / 490.2 MB, free: 1.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005924/0.1106, allocations: 0.5136 MB / 490.7 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.406e-05/0.1106, allocations: 33.7 kB / 490.7 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002393/0.1109, allocations: 300.3 kB / 491 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000124/0.111, allocations: 146.8 kB / 491.1 MB, free: 484 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.1112, allocations: 114.2 kB / 491.2 MB, free: 364 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002009/0.1114, allocations: 374.8 kB / 491.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002954/0.1117, allocations: 165.1 kB / 491.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004311/0.1121, allocations: 361.9 kB / 492.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002254/0.1144, allocations: 1.101 MB / 493.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.1144, allocations: 4 kB / 493.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001172/0.1156, allocations: 0.7542 MB / 494 MB, free: 13.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.495e-05/0.1156, allocations: 41.86 kB / 494 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.1157, allocations: 8 kB / 494 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.453e-05/0.1157, allocations: 11.94 kB / 494 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004908/0.1162, allocations: 135.8 kB / 494.2 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.849e-05/0.1162, allocations: 11.94 kB / 494.2 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002625/0.1165, allocations: 71.5 kB / 494.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.344e-05/0.1165, allocations: 27.98 kB / 494.3 MB, free: 13.1 MB / 366.1 MB Warning: Assuming fixed start value for the following 15 variables: processNoCtrl.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real processNoCtrl.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processNoCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessBias.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real ProcessBias.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessBias.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessBias.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessBias.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real ProcessCtrl.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 15 (Disturbance.nextEventScaled,Disturbance.nextEvent,$PRE.Disturbance.nextEvent,Disturbance.last,Disturbance.b,Disturbance.a,$whenCondition1,R_Bias.TS_in,R.TS_in,R_Bias.satLOW_in,R_Bias.satHIGH_in,R_Bias.ATreq_in,R.satLOW_in,R.satHIGH_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 73 * 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.0003637/0.1169, allocations: 282.5 kB / 494.6 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.614e-05/0.117, allocations: 55.67 kB / 494.6 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009001/0.1179, allocations: 0.5186 MB / 495.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.295e-06/0.1179, allocations: 11.92 kB / 495.2 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.1179, allocations: 0 / 495.2 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.1179, allocations: 7.984 kB / 495.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005486/0.1185, allocations: 492.8 kB / 495.6 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1185, allocations: 0 / 495.6 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004816/0.119, allocations: 87.88 kB / 495.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.119, allocations: 4 kB / 495.7 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.403e-05/0.1191, allocations: 19.98 kB / 495.7 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.1191, allocations: 3.938 kB / 495.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1191, allocations: 0 / 495.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.1201, allocations: 0.7153 MB / 496.5 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001118/0.1203, allocations: 136.7 kB / 496.6 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.507e-05/0.1203, allocations: 19.92 kB / 496.6 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001646/0.1205, allocations: 27.92 kB / 496.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.05e-05/0.1206, allocations: 15.97 kB / 496.7 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.633e-05/0.1206, allocations: 16 kB / 496.7 MB, free: 10.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003855/0.121, allocations: 350.8 kB / 497 MB, free: 10.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.121, allocations: 0 / 497 MB, free: 10.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004217/0.1215, allocations: 115.8 kB / 497.1 MB, free: 10.14 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 17 (R.Fin,R_Bias.Fin,ProcessCtrl.Y[3],ProcessCtrl.Y[4],ProcessCtrl.U[2],ProcessCtrl.U[3],ProcessCtrl.w,processNoCtrl.Y[3],processNoCtrl.Y[4],processNoCtrl.U[2],processNoCtrl.U[3],processNoCtrl.w,ProcessBias.Y[3],ProcessBias.Y[4],ProcessBias.U[2],ProcessBias.U[3],ProcessBias.w) * Number of discrete variables: 6 ($whenCondition1,Disturbance.a,Disturbance.b,Disturbance.last,Disturbance.nextEvent,Disturbance.nextEventScaled) * Number of discrete states: 6 (Disturbance.nextEvent,Disturbance.last,Disturbance.nextEventScaled,Disturbance.b,Disturbance.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * 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 Backend phase and start with SimCode phase: time 0.001532/0.123, allocations: 1.308 MB / 498.4 MB, free: 8.797 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008703/0.1239, allocations: 0.5589 MB / 499 MB, free: 8.227 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1239, allocations: 0 / 499 MB, free: 8.227 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004578/0.1244, allocations: 279.2 kB / 499.3 MB, free: 7.941 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003445/0.1247, allocations: 55.02 kB / 499.3 MB, free: 7.887 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006499/0.1312, allocations: 5.083 MB / 0.4926 GB, free: 2.543 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005646/0.1318, allocations: 0.8937 MB / 0.4935 GB, free: 1.625 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000261/0.1321, allocations: 108.3 kB / 0.4936 GB, free: 1.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002527/0.1324, allocations: 191.4 kB / 0.4937 GB, free: 1.332 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1324, allocations: 192 / 0.4937 GB, free: 1.332 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03389/0.1663, allocations: 9.314 MB / 0.5028 GB, free: 8.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.706/8.872, allocations: 8.672 kB / 0.5029 GB, free: 8.172 MB / 382.1 MB " [Timeout remaining time 651] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.553579431958497] Failed to read output from testmodel.py, exit status != 0: 8.942803660989739 9.113791949 9.010853896 Calling exit ...