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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008074/0.0008074, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009721/0.0009721, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9183/0.9183, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.03597/0.03597, allocations: 8.61 MB / 267.8 MB, free: 5.129 MB / 250.7 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 2.294e-06/2.294e-06, allocations: 0 / 395.1 MB, free: 2.672 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.341e-05/2.571e-05, allocations: 2.281 kB / 395.1 MB, free: 2.668 MB / 362.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_bias): time 0.003276/0.003302, allocations: 2.15 MB / 397.2 MB, free: 0.5039 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.00148/0.004782, allocations: 1.002 MB / 398.2 MB, free: 15.5 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001622/0.004945, allocations: 19.75 kB / 398.2 MB, free: 15.48 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000263/0.005208, allocations: 95.28 kB / 398.3 MB, free: 15.38 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 9.811e-05/0.005306, allocations: 75.44 kB / 398.4 MB, free: 15.31 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008436/0.006149, allocations: 394.2 kB / 398.8 MB, free: 14.93 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004794/0.006629, allocations: 0.556 MB / 399.4 MB, free: 14.37 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.006787, allocations: 69.19 kB / 399.4 MB, free: 14.29 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002424/0.007029, allocations: 267.4 kB / 399.7 MB, free: 14.03 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002519/0.007281, allocations: 207.4 kB / 399.9 MB, free: 13.83 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.338e-05/0.007325, allocations: 36 kB / 399.9 MB, free: 13.79 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001255/0.00745, allocations: 103.9 kB / 400 MB, free: 13.69 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001184/0.007569, allocations: 167.4 kB / 400.2 MB, free: 13.53 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.007673, allocations: 135.5 kB / 400.3 MB, free: 13.39 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004228/0.008095, allocations: 0.5412 MB / 400.9 MB, free: 12.85 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.008101, allocations: 7.984 kB / 400.9 MB, free: 12.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.008102, allocations: 0 / 400.9 MB, free: 12.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.00811, allocations: 0 / 400.9 MB, free: 12.84 MB / 378.7 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.001005/0.009115, allocations: 0.8103 MB / 401.7 MB, free: 12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.009158, allocations: 8.031 kB / 401.7 MB, free: 11.99 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.762e-05/0.009226, allocations: 82.7 kB / 401.8 MB, free: 11.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.763e-05/0.009304, allocations: 72.52 kB / 401.8 MB, free: 11.83 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004434/0.009747, allocations: 382.1 kB / 402.2 MB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.966e-05/0.009777, allocations: 33.38 kB / 402.2 MB, free: 11.4 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.755e-05/0.009834, allocations: 48.33 kB / 402.3 MB, free: 11.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000581/0.01042, allocations: 0.5842 MB / 402.9 MB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/0.01044, allocations: 8.141 kB / 402.9 MB, free: 10.72 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.722e-05/0.01046, allocations: 32.06 kB / 402.9 MB, free: 10.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.01047, allocations: 12 kB / 402.9 MB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004471/0.01092, allocations: 425.4 kB / 403.3 MB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001858/0.01278, allocations: 2.057 MB / 405.4 MB, free: 8.105 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003864/0.01316, allocations: 284.1 kB / 405.7 MB, free: 7.812 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/0.01334, allocations: 194.5 kB / 405.9 MB, free: 7.613 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.856e-05/0.01337, allocations: 3.984 kB / 405.9 MB, free: 7.609 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002736/0.01364, allocations: 299.4 kB / 406.2 MB, free: 7.293 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 2.014e-06/0.01365, allocations: 4 kB / 406.2 MB, free: 7.289 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.0007026/0.01435, allocations: 0.6371 MB / 406.8 MB, free: 6.621 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.452e-05/0.01439, allocations: 89.09 kB / 406.9 MB, free: 6.516 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003723/0.01477, allocations: 0.5213 MB / 407.4 MB, free: 5.984 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/0.01479, allocations: 29.7 kB / 407.4 MB, free: 5.949 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.01494, allocations: 304.3 kB / 407.7 MB, free: 5.645 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.22e-05/0.01501, allocations: 142.9 kB / 407.9 MB, free: 5.504 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.01511, allocations: 118.1 kB / 408 MB, free: 5.383 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.01522, allocations: 370.8 kB / 408.4 MB, free: 5.012 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001889/0.01541, allocations: 206.7 kB / 408.6 MB, free: 4.805 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002537/0.01566, allocations: 387.4 kB / 408.9 MB, free: 4.336 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001283/0.01694, allocations: 1.125 MB / 410.1 MB, free: 3.105 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.01695, allocations: 3.938 kB / 410.1 MB, free: 3.102 MB / 378.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0007444/0.01769, allocations: 0.787 MB / 410.8 MB, free: 2.297 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.983e-05/0.01773, allocations: 41.69 kB / 410.9 MB, free: 2.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.01774, allocations: 8 kB / 410.9 MB, free: 2.242 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.01776, allocations: 8 kB / 410.9 MB, free: 2.234 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002684/0.01803, allocations: 135.8 kB / 411 MB, free: 2.102 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.01804, allocations: 15.88 kB / 411.1 MB, free: 2.086 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001408/0.01818, allocations: 75.44 kB / 411.1 MB, free: 2.012 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.5e-05/0.0182, allocations: 24.34 kB / 411.2 MB, free: 1.988 MB / 378.7 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.0002334/0.01844, allocations: 295.3 kB / 411.4 MB, free: 1.684 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.887e-05/0.01848, allocations: 51.67 kB / 411.5 MB, free: 1.633 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005548/0.01903, allocations: 0.5553 MB / 412 MB, free: 1.059 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.01904, allocations: 7.984 kB / 412.1 MB, free: 1.051 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.01904, allocations: 0 / 412.1 MB, free: 1.051 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.01905, allocations: 3.938 kB / 412.1 MB, free: 1.047 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003081/0.01935, allocations: 420.3 kB / 412.5 MB, free: 0.5938 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.01936, allocations: 0 / 412.5 MB, free: 0.5938 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002576/0.01961, allocations: 79.89 kB / 412.5 MB, free: 0.5156 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.01962, allocations: 0 / 412.5 MB, free: 0.5156 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.712e-05/0.01964, allocations: 19.98 kB / 412.6 MB, free: 0.4961 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.01965, allocations: 8 kB / 412.6 MB, free: 500 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.01965, allocations: 0 / 412.6 MB, free: 500 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006937/0.02034, allocations: 0.793 MB / 413.4 MB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.575e-05/0.02039, allocations: 55.56 kB / 413.4 MB, free: 15.61 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.264e-05/0.02043, allocations: 19.98 kB / 413.4 MB, free: 15.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.692e-05/0.02051, allocations: 15.98 kB / 413.5 MB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.325e-05/0.02056, allocations: 27.89 kB / 413.5 MB, free: 15.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.297e-05/0.02058, allocations: 15.94 kB / 413.5 MB, free: 15.53 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002438/0.02083, allocations: 354.8 kB / 413.8 MB, free: 15.18 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02083, allocations: 0 / 413.8 MB, free: 15.18 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000286/0.02111, allocations: 111.8 kB / 414 MB, free: 15.07 MB / 394.7 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.001014/0.02213, allocations: 1.377 MB / 415.3 MB, free: 13.64 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005722/0.0227, allocations: 0.5686 MB / 415.9 MB, free: 13.05 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.0227, allocations: 1.562 kB / 415.9 MB, free: 13.05 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002053/0.02291, allocations: 276.9 kB / 416.2 MB, free: 12.76 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002248/0.02313, allocations: 58.09 kB / 416.2 MB, free: 12.71 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004304/0.02743, allocations: 5.189 MB / 421.4 MB, free: 7.23 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004434/0.02788, allocations: 292.6 kB / 421.7 MB, free: 6.922 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001727/0.02805, allocations: 116.3 kB / 421.8 MB, free: 6.809 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001675/0.02822, allocations: 192.4 kB / 422 MB, free: 6.617 MB / 394.7 MB Notification: Performance of SimCode: time 5.51e-07/0.02822, allocations: 0 / 422 MB, free: 6.617 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02233/0.05055, allocations: 10.02 MB / 432 MB, free: 12.75 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.264/7.314, allocations: 7.094 kB / 432 MB, free: 12.75 MB / 410.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias_fmu --startTime=0 --stopTime=100 --stepSize=0.04 --timeout=50 --tolerance=1e-06 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: 9.295360600575805] Failed to read output from testmodel.py, exit status != 0: 7.401739594526589 7.578762039 7.399851663 Calling exit ...