Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.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.Examples.TestP_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestP_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_bias",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.002501/0.002501, allocations: 108 kB / 15.61 MB, free: 152 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.003029/0.003029, allocations: 195.5 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.819/2.819, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.09932/0.09932, allocations: 10.74 MB / 280.5 MB, free: 10.5 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.002242/0.002242, allocations: 67.89 kB / 340.7 MB, free: 23.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.2134, allocations: 49.01 MB / 389.7 MB, free: 6.156 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_bias): time 0.007171/0.2207, allocations: 2.101 MB / 391.8 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00165/0.2225, allocations: 402.8 kB / 392.2 MB, free: 3.641 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002899/0.2228, allocations: 15.88 kB / 392.2 MB, free: 3.625 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003472/0.2232, allocations: 47.47 kB / 392.2 MB, free: 3.578 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001718/0.2234, allocations: 35.61 kB / 392.3 MB, free: 3.543 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001019/0.2244, allocations: 191.7 kB / 392.4 MB, free: 3.355 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001062/0.2255, allocations: 475.3 kB / 392.9 MB, free: 2.891 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004862/0.226, allocations: 80.92 kB / 393 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003317/0.2264, allocations: 147.5 kB / 393.1 MB, free: 2.668 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003976/0.2268, allocations: 167.2 kB / 393.3 MB, free: 2.504 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.922e-05/0.2269, allocations: 24 kB / 393.3 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.619e-05/0.227, allocations: 28 kB / 393.3 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002679/0.2273, allocations: 123.6 kB / 393.5 MB, free: 2.332 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000291/0.2276, allocations: 166.9 kB / 393.6 MB, free: 2.168 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006363/0.2282, allocations: 342.6 kB / 394 MB, free: 1.832 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.2283, allocations: 0 / 394 MB, free: 1.832 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.2283, allocations: 3.938 kB / 394 MB, free: 1.828 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.2283, allocations: 0 / 394 MB, free: 1.828 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.002007/0.2303, allocations: 0.7014 MB / 394.7 MB, free: 1.074 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.241e-05/0.2304, allocations: 15.89 kB / 394.7 MB, free: 1.059 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002192/0.2306, allocations: 70.72 kB / 394.7 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00012/0.2308, allocations: 44.38 kB / 394.8 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001622/0.2324, allocations: 359.7 kB / 395.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.23e-05/0.2325, allocations: 29.03 kB / 395.2 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.358e-05/0.2326, allocations: 28.38 kB / 395.2 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009811/0.2336, allocations: 404 kB / 395.6 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.597e-05/0.2336, allocations: 15.83 kB / 395.6 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.986e-05/0.2337, allocations: 16 kB / 395.6 MB, free: 44 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.475e-05/0.2337, allocations: 12 kB / 395.6 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008298/0.2345, allocations: 290.4 kB / 395.9 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003638/0.2382, allocations: 1.5 MB / 397.4 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006315/0.2389, allocations: 178.4 kB / 397.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003174/0.2392, allocations: 116.7 kB / 397.7 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.571e-05/0.2392, allocations: 0 / 397.7 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.277e-05/0.2393, allocations: 38.56 kB / 397.7 MB, free: 13.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.354e-06/0.2393, allocations: 0 / 397.7 MB, free: 13.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001069/0.2404, allocations: 321.4 kB / 398.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.207e-05/0.2405, allocations: 51.41 kB / 398.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006879/0.2412, allocations: 401.5 kB / 398.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.061e-05/0.2413, allocations: 29.7 kB / 398.5 MB, free: 13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003195/0.2416, allocations: 228 kB / 398.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000138/0.2417, allocations: 82.8 kB / 398.8 MB, free: 12.69 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002091/0.242, allocations: 73.59 kB / 398.9 MB, free: 12.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002744/0.2422, allocations: 354.7 kB / 399.3 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003373/0.2426, allocations: 92.25 kB / 399.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004951/0.2431, allocations: 214.1 kB / 399.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002725/0.2459, allocations: 0.5764 MB / 400.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/0.2459, allocations: 4 kB / 400.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001328/0.2472, allocations: 420.7 kB / 400.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.74e-05/0.2473, allocations: 8.469 kB / 400.6 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-05/0.2473, allocations: 8 kB / 400.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.247e-05/0.2474, allocations: 4 kB / 400.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000588/0.248, allocations: 95.81 kB / 400.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.796e-05/0.248, allocations: 4 kB / 400.7 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004093/0.2485, allocations: 43.58 kB / 400.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.456e-05/0.2485, allocations: 16 kB / 400.7 MB, free: 10.68 MB / 302.1 MB Warning: Assuming fixed start value for the following 9 variables: ProcessBias.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessBias.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] ProcessBias.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processNoCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processNoCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] ProcessCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (R_Bias.TS_in,R.TS_in,R_Bias.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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.0006941/0.2492, allocations: 195.6 kB / 400.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002078/0.2495, allocations: 43.45 kB / 401 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001048/0.2505, allocations: 288.8 kB / 401.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.49e-05/0.2506, allocations: 4 kB / 401.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-05/0.2506, allocations: 0 / 401.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.988e-06/0.2506, allocations: 0 / 401.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009327/0.2515, allocations: 373.3 kB / 401.6 MB, free: 9.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/0.2516, allocations: 7.922 kB / 401.6 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005254/0.2521, allocations: 63.84 kB / 401.7 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.235e-06/0.2521, allocations: 0 / 401.7 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.799e-05/0.2522, allocations: 11.98 kB / 401.7 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.255e-06/0.2522, allocations: 4 kB / 401.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.2522, allocations: 0 / 401.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.2535, allocations: 478.7 kB / 402.2 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002233/0.2537, allocations: 116.5 kB / 402.3 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.515e-05/0.2538, allocations: 7.984 kB / 402.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002444/0.2541, allocations: 15.98 kB / 402.3 MB, free: 9.004 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.2542, allocations: 16.02 kB / 402.3 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.761e-05/0.2542, allocations: 12 kB / 402.3 MB, free: 8.977 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000546/0.2548, allocations: 275.1 kB / 402.6 MB, free: 8.707 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.2548, allocations: 0 / 402.6 MB, free: 8.707 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006251/0.2555, allocations: 59.84 kB / 402.6 MB, free: 8.648 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (ProcessCtrl.Y[3],ProcessCtrl.U[2],ProcessCtrl.w,processNoCtrl.Y[3],processNoCtrl.U[2],processNoCtrl.w,ProcessBias.Y[3],ProcessBias.U[2],ProcessBias.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * 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.00178/0.2572, allocations: 1.016 MB / 403.7 MB, free: 7.609 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007805/0.2581, allocations: 295.6 kB / 404 MB, free: 7.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.174e-06/0.2581, allocations: 0.9375 kB / 404 MB, free: 7.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002376/0.2583, allocations: 111.8 kB / 404.1 MB, free: 7.211 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006088/0.2589, allocations: 42.72 kB / 404.1 MB, free: 7.172 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01556/0.2745, allocations: 3.548 MB / 407.7 MB, free: 3.457 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001061/0.2757, allocations: 0.8266 MB / 408.5 MB, free: 2.605 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004753/0.2762, allocations: 74.91 kB / 408.6 MB, free: 2.527 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003588/0.2766, allocations: 131.4 kB / 408.7 MB, free: 2.398 MB / 302.1 MB Notification: Performance of SimCode: time 2.534e-06/0.2766, allocations: 4 kB / 408.7 MB, free: 2.395 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.118/0.3946, allocations: 6.006 MB / 414.7 MB, free: 12.42 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.76/20.15, allocations: 0 / 414.7 MB, free: 12.42 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_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_TestP_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.pipe 2>&1)