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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) 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.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.008962/0.008962, allocations: 101 kB / 15.73 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002275/0.002275, allocations: 191.5 kB / 16.67 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.554/1.554, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1758/0.1758, allocations: 11.17 MB / 301.7 MB, free: 1.344 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 67.88 kB / 417.3 MB, free: 6.113 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.2521, allocations: 51.96 MB / 469.3 MB, free: 16.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.ProcessControl): time 0.004513/0.2566, allocations: 4.414 MB / 473.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00345/0.2601, allocations: 1.833 MB / 475.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001144/0.2613, allocations: 69.62 kB / 475.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003815/0.2617, allocations: 187.2 kB / 475.8 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005095/0.2622, allocations: 173.2 kB / 476 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001858/0.2641, allocations: 0.966 MB / 476.9 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001472/0.2656, allocations: 1.626 MB / 478.6 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005254/0.2661, allocations: 438.8 kB / 479 MB, free: 9.699 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006018/0.2667, allocations: 0.6545 MB / 479.7 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004557/0.2672, allocations: 0.5982 MB / 480.3 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001802/0.2674, allocations: 127.4 kB / 480.4 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001597/0.2676, allocations: 128.2 kB / 480.5 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000183/0.2677, allocations: 329.6 kB / 480.8 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003306/0.2681, allocations: 0.6459 MB / 481.5 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001005/0.2691, allocations: 1.38 MB / 482.8 MB, free: 6.891 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2691, allocations: 5.25 kB / 482.9 MB, free: 6.887 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2691, allocations: 3.938 kB / 482.9 MB, free: 6.883 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.755e-05/0.2691, allocations: 0 / 482.9 MB, free: 6.883 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: 277 * Number of variables: 277 Notification: Performance of Generate backend data structure: time 0.00256/0.2717, allocations: 1.83 MB / 484.7 MB, free: 5.484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.2718, allocations: 12.86 kB / 484.7 MB, free: 5.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001489/0.2719, allocations: 165.9 kB / 484.9 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002398/0.2722, allocations: 190.3 kB / 485 MB, free: 5.246 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001374/0.2735, allocations: 1.075 MB / 486.1 MB, free: 4.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001322/0.2737, allocations: 309.3 kB / 486.4 MB, free: 4.113 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000161/0.2738, allocations: 140.8 kB / 486.6 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001536/0.2754, allocations: 1.296 MB / 487.9 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.195e-05/0.2754, allocations: 2.75 kB / 487.9 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.136e-05/0.2755, allocations: 48.38 kB / 487.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.573e-05/0.2756, allocations: 34.25 kB / 487.9 MB, free: 3.004 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001194/0.2768, allocations: 0.7864 MB / 488.7 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005374/0.2821, allocations: 5.286 MB / 494 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001578/0.2837, allocations: 0.8391 MB / 494.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006415/0.2844, allocations: 423.2 kB / 495.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.728e-05/0.2845, allocations: 20.48 kB / 495.3 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.721e-05/0.2845, allocations: 45.75 kB / 495.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=99): time 2.334e-06/0.2845, allocations: 0 / 495.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.001964/0.2865, allocations: 1.095 MB / 496.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000253/0.2868, allocations: 376.9 kB / 496.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001175/0.288, allocations: 1.014 MB / 497.8 MB, free: 11.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.764e-05/0.288, allocations: 55.89 kB / 497.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005598/0.2886, allocations: 0.6671 MB / 498.5 MB, free: 11.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003403/0.289, allocations: 400.7 kB / 498.9 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003995/0.2894, allocations: 304.5 kB / 499.2 MB, free: 10.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.2895, allocations: 314.4 kB / 499.5 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006721/0.2902, allocations: 367 kB / 499.9 MB, free: 9.977 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001142/0.2913, allocations: 0.86 MB / 0.489 GB, free: 8.891 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00177/0.2931, allocations: 1.211 MB / 0.4902 GB, free: 7.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.115e-06/0.2931, allocations: 4 kB / 0.4902 GB, free: 7.496 MB / 366.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002355/0.2955, allocations: 1.391 MB / 0.4916 GB, free: 6.098 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/0.2955, allocations: 15.94 kB / 0.4916 GB, free: 6.082 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.794e-05/0.2956, allocations: 12 kB / 0.4916 GB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.54e-05/0.2956, allocations: 24 kB / 0.4916 GB, free: 6.047 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002258/0.2979, allocations: 351.4 kB / 0.4919 GB, free: 5.703 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.774e-05/0.298, allocations: 36.03 kB / 0.492 GB, free: 5.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001349/0.2993, allocations: 154.9 kB / 0.4921 GB, free: 5.516 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001469/0.2995, allocations: 64 kB / 0.4922 GB, free: 5.453 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 32 (R_FS.satLOW_in,R_FS.satHIGH_in,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.satLOW_in,R_Osc.satHIGH_in,R_Osc.ATreq_in,R_US.satLOW_in,R_US.satHIGH_in,R_US.ATreq_in,R_OS.satLOW_in,R_OS.satHIGH_in,R_OS.ATreq_in,R_iD.satLOW_in,R_iD.satHIGH_in,R_iD.ATreq_in,R_i.satLOW_in,R_i.satHIGH_in,R_i.ATreq_in,R_FOD.satLOW_in,R_FOD.satHIGH_in,R_FOD.ATreq_in,R_FO.satLOW_in,R_FO.satHIGH_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 (195): * Single equations (assignments): 195 * 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.0007806/0.3003, allocations: 295.6 kB / 0.4925 GB, free: 5.156 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003171/0.3006, allocations: 139.1 kB / 0.4926 GB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002679/0.3033, allocations: 1.069 MB / 0.4936 GB, free: 3.938 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.746e-05/0.3033, allocations: 12 kB / 0.4937 GB, free: 3.926 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/0.3034, allocations: 7.938 kB / 0.4937 GB, free: 3.918 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.136e-05/0.3034, allocations: 7.969 kB / 0.4937 GB, free: 3.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001773/0.3052, allocations: 1.115 MB / 0.4948 GB, free: 2.746 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.3052, allocations: 0 / 0.4948 GB, free: 2.746 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001806/0.307, allocations: 311.6 kB / 0.4951 GB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.665e-05/0.307, allocations: 4 kB / 0.4951 GB, free: 2.438 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001258/0.3072, allocations: 28 kB / 0.4951 GB, free: 2.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-05/0.3072, allocations: 7.984 kB / 0.4951 GB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.3072, allocations: 3.938 kB / 0.4951 GB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003552/0.3108, allocations: 1.459 MB / 0.4965 GB, free: 0.9297 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003183/0.3111, allocations: 219.9 kB / 0.4967 GB, free: 0.6953 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001566/0.3113, allocations: 32 kB / 0.4968 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008479/0.3121, allocations: 35.92 kB / 0.4968 GB, free: 0.6289 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002234/0.3124, allocations: 76.83 kB / 0.4969 GB, free: 0.5508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.681e-05/0.3125, allocations: 31.98 kB / 0.4969 GB, free: 0.5195 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001362/0.3139, allocations: 0.6284 MB / 0.4975 GB, free: 15.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3139, allocations: 0 / 0.4975 GB, free: 15.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001341/0.3152, allocations: 255.5 kB / 0.4978 GB, free: 15.64 MB / 382.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.00403/0.3193, allocations: 2.066 MB / 0.4998 GB, free: 13.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002766/0.3221, allocations: 0.9896 MB / 0.5007 GB, free: 12.56 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.3221, allocations: 4.062 kB / 0.5007 GB, free: 12.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00108/0.3232, allocations: 453.5 kB / 0.5012 GB, free: 12.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.3244, allocations: 156.3 kB / 0.5013 GB, free: 11.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02203/0.3464, allocations: 10.83 MB / 0.5119 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001246/0.3477, allocations: 1.197 MB / 0.5131 GB, free: 15.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001097/0.3488, allocations: 186.1 kB / 0.5133 GB, free: 15.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001052/0.3499, allocations: 0.5813 MB / 0.5138 GB, free: 14.65 MB / 398.1 MB Notification: Performance of SimCode: time 6.22e-07/0.3499, allocations: 0 / 0.5138 GB, free: 14.65 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07071/0.4206, allocations: 22.2 MB / 0.5355 GB, free: 8.672 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.56/10.98, allocations: 8.922 kB / 0.5355 GB, free: 8.668 MB / 414.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)