Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.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.Applications.ControlProblems.ProcessControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ControlProblems_ProcessControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Applications.ControlProblems.ProcessControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ControlProblems_ProcessControl",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.002075/0.002075, 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.002915/0.002915, 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 3.479/3.479, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.1112/0.1112, allocations: 10.73 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.003179/0.003179, allocations: 68.36 kB / 340.6 MB, free: 23.24 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2033/0.2065, allocations: 49.01 MB / 389.7 MB, free: 6.164 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.ProcessControl): time 0.01076/0.2173, allocations: 4.187 MB / 393.8 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007144/0.2246, allocations: 1.696 MB / 395.5 MB, free: 252 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002213/0.2269, allocations: 63.44 kB / 395.6 MB, free: 188 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001057/0.2281, allocations: 165.9 kB / 395.8 MB, free: 20 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003353/0.2315, allocations: 166.3 kB / 395.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004445/0.236, allocations: 0.8892 MB / 396.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003592/0.2396, allocations: 1.485 MB / 398.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001436/0.2411, allocations: 420.6 kB / 398.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001864/0.243, allocations: 0.6147 MB / 399.3 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001576/0.2446, allocations: 0.567 MB / 399.9 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000828/0.2454, allocations: 124 kB / 400 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006779/0.2461, allocations: 120 kB / 400.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008753/0.2471, allocations: 318.7 kB / 400.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001739/0.2488, allocations: 0.5978 MB / 401 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002838/0.2517, allocations: 1.234 MB / 402.3 MB, free: 9.457 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.848e-06/0.2517, allocations: 4 kB / 402.3 MB, free: 9.453 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.497e-06/0.2517, allocations: 0 / 402.3 MB, free: 9.453 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.022e-05/0.2518, allocations: 0 / 402.3 MB, free: 9.453 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.006872/0.2587, allocations: 1.686 MB / 404 MB, free: 7.711 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.074e-05/0.2588, allocations: 11.89 kB / 404 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005303/0.2594, allocations: 156.3 kB / 404.1 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000599/0.26, allocations: 163 kB / 404.3 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003105/0.2631, allocations: 0.8854 MB / 405.2 MB, free: 6.438 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005479/0.2637, allocations: 300.2 kB / 405.5 MB, free: 6.094 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005571/0.2643, allocations: 132.1 kB / 405.6 MB, free: 5.965 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00346/0.2678, allocations: 1.121 MB / 406.7 MB, free: 4.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.887e-05/0.2679, allocations: 7.938 kB / 406.7 MB, free: 4.742 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001376/0.268, allocations: 39.94 kB / 406.8 MB, free: 4.703 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.834e-05/0.2681, allocations: 24 kB / 406.8 MB, free: 4.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002043/0.2701, allocations: 0.726 MB / 407.5 MB, free: 3.953 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008839/0.279, allocations: 3.84 MB / 411.4 MB, free: 15.99 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002596/0.2817, allocations: 0.8522 MB / 412.2 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001096/0.2828, allocations: 422.3 kB / 412.6 MB, free: 14.72 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001261/0.283, allocations: 20.97 kB / 412.6 MB, free: 14.7 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.404e-05/0.2831, allocations: 43.56 kB / 412.7 MB, free: 14.65 MB / 318.1 MB Notification: Performance of pre-optimization done (n=99): time 9.828e-06/0.2831, allocations: 4 kB / 412.7 MB, free: 14.64 MB / 318.1 MB Notification: Performance of matching and sorting (n=99): time 0.004008/0.2871, allocations: 1.084 MB / 413.8 MB, free: 13.55 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003306/0.2875, allocations: 380.8 kB / 414.1 MB, free: 13.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002132/0.2896, allocations: 0.907 MB / 415 MB, free: 12.17 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001958/0.2899, allocations: 49.7 kB / 415.1 MB, free: 12.12 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007954/0.2907, allocations: 0.586 MB / 415.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005655/0.2913, allocations: 382.5 kB / 416.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005741/0.2918, allocations: 267.5 kB / 416.3 MB, free: 10.88 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002659/0.2921, allocations: 357.9 kB / 416.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001004/0.2931, allocations: 359.8 kB / 417 MB, free: 10.17 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00145/0.2946, allocations: 0.7486 MB / 417.8 MB, free: 9.254 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002312/0.2969, allocations: 1.08 MB / 418.8 MB, free: 8.043 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.571e-05/0.297, allocations: 4 kB / 418.8 MB, free: 8.039 MB / 318.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003324/0.3003, allocations: 1.269 MB / 420.1 MB, free: 6.762 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.958e-05/0.3004, allocations: 10.81 kB / 420.1 MB, free: 6.754 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.661e-05/0.3004, allocations: 12 kB / 420.1 MB, free: 6.742 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.702e-05/0.3005, allocations: 16 kB / 420.2 MB, free: 6.727 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002236/0.3027, allocations: 348 kB / 420.5 MB, free: 6.387 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.695e-05/0.3028, allocations: 19.94 kB / 420.5 MB, free: 6.367 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001285/0.3041, allocations: 130.6 kB / 420.6 MB, free: 6.238 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001406/0.3043, allocations: 59.98 kB / 420.7 MB, free: 6.18 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 16 (R_FS.ATreq_in,R_FS.TS_in,R_Osc.TS_in,R_US.TS_in,R_OS.TS_in,R_iD.TS_in,R_i.TS_in,R_FOD.TS_in,R_FO.TS_in,R_Osc.ATreq_in,R_US.ATreq_in,R_OS.ATreq_in,R_iD.ATreq_in,R_i.ATreq_in,R_FOD.ATreq_in,R_FO.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 179 * 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.0008706/0.3051, allocations: 289.9 kB / 421 MB, free: 5.887 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004012/0.3056, allocations: 126.4 kB / 421.1 MB, free: 5.762 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003152/0.3087, allocations: 1.045 MB / 422.2 MB, free: 4.703 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.681e-05/0.3088, allocations: 8 kB / 422.2 MB, free: 4.695 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.57e-05/0.3088, allocations: 4 kB / 422.2 MB, free: 4.691 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.613e-05/0.3089, allocations: 11.97 kB / 422.2 MB, free: 4.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002611/0.3115, allocations: 1.07 MB / 423.2 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/0.3115, allocations: 0 / 423.2 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002911/0.3145, allocations: 303.6 kB / 423.5 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.869e-05/0.3145, allocations: 4 kB / 423.5 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001867/0.3147, allocations: 35.98 kB / 423.6 MB, free: 3.227 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-05/0.3148, allocations: 4 kB / 423.6 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.3148, allocations: 4 kB / 423.6 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004143/0.3189, allocations: 1.459 MB / 425 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005899/0.3196, allocations: 203.2 kB / 425.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004594/0.3201, allocations: 32 kB / 425.3 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001233/0.3213, allocations: 27.98 kB / 425.3 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003756/0.3217, allocations: 84.83 kB / 425.4 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001238/0.3219, allocations: 35.98 kB / 425.4 MB, free: 1.348 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002446/0.3244, allocations: 0.5826 MB / 426 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.72e-07/0.3244, allocations: 0 / 426 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001793/0.3262, allocations: 231.4 kB / 426.2 MB, free: 0.5312 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 40 (NoControl.firstOrder.y,NoControl.firstOrder1.y,NoControl.integrator.y,NoControl.integrator1.y,NoControl.leadLag.dy,NoControl.firstOrder2.y,NoControl.leadLag1.dy,NoControl.firstOrder3.y,NoControl.complexPoles.y,NoControl.complexPoles.dy,NoControl.leadLag2.dy,NoControl.firstOrder4.y,Controlled.firstOrder.y,Controlled.firstOrder1.y,Controlled.integrator.y,Controlled.integrator1.y,Controlled.leadLag.dy,Controlled.firstOrder2.y,Controlled.leadLag1.dy,Controlled.firstOrder3.y,Controlled.complexPoles.y,Controlled.complexPoles.dy,Controlled.leadLag2.dy,Controlled.firstOrder4.y,R_FO.Iaction,R_FO.Fder,R_FOD.Iaction,R_FOD.Fder,R_i.Iaction,R_i.Fder,R_iD.Iaction,R_iD.Fder,R_OS.Iaction,R_OS.Fder,R_US.Iaction,R_US.Fder,R_Osc.Iaction,R_Osc.Fder,R_FS.Iaction,R_FS.Fder) * 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 (115): * Single equations (assignments): 115 * 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.4022/0.7284, allocations: 2.042 MB / 428.3 MB, free: 41.69 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005075/0.7336, allocations: 0.9911 MB / 429.3 MB, free: 41.66 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/0.7337, allocations: 1.125 kB / 429.3 MB, free: 41.66 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001499/0.7352, allocations: 461.6 kB / 429.7 MB, free: 41.53 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001504/0.7367, allocations: 147.3 kB / 429.9 MB, free: 41.46 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03339/0.7701, allocations: 10.93 MB / 440.8 MB, free: 35.18 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001908/0.7722, allocations: 1.165 MB / 442 MB, free: 34.45 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001718/0.7739, allocations: 178.8 kB / 442.1 MB, free: 34.41 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009922/0.7749, allocations: 0.5338 MB / 442.7 MB, free: 34 MB / 318.1 MB Notification: Performance of SimCode: time 2.685e-06/0.775, allocations: 0 / 442.7 MB, free: 34 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2182/0.9932, allocations: 20.87 MB / 463.5 MB, free: 17.09 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.74/20.73, allocations: 4.297 kB / 463.5 MB, free: 17.09 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl_res.csv --start-time 0 --stop-time 40 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.016 IndustrialControlSystems_IndustrialControlSystems_Applications_ControlProblems_ProcessControl.fmu > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.pipe 2>&1)