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.00547/0.005471, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.00124/0.00124, allocations: 202.3 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.372/1.372, allocations: 205.1 MB / 222.6 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05903/0.05903, allocations: 10.75 MB / 280.7 MB, free: 10.43 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.001436/0.001436, allocations: 67.88 kB / 390.3 MB, free: 5.551 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2805/0.282, allocations: 49.03 MB / 439.4 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.ProcessControl): time 0.004934/0.287, allocations: 4.183 MB / 443.5 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002785/0.2898, allocations: 1.695 MB / 445.2 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004905/0.2903, allocations: 69.19 kB / 445.3 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002889/0.2906, allocations: 152.5 kB / 445.5 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005264/0.2911, allocations: 176.2 kB / 445.6 MB, free: 468 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001418/0.2926, allocations: 0.8891 MB / 446.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00152/0.2941, allocations: 1.505 MB / 448 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005895/0.2947, allocations: 425.6 kB / 448.4 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006978/0.2954, allocations: 0.6348 MB / 449.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005693/0.296, allocations: 0.5743 MB / 449.6 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001552/0.2962, allocations: 121 kB / 449.8 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001372/0.2963, allocations: 122.8 kB / 449.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002387/0.2965, allocations: 306.3 kB / 450.2 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004743/0.297, allocations: 0.6086 MB / 450.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00132/0.2984, allocations: 1.285 MB / 452.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2984, allocations: 1.562 kB / 452.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2984, allocations: 0 / 452.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.709e-05/0.2984, allocations: 0 / 452.1 MB, free: 12.4 MB / 334.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.002715/0.3011, allocations: 1.724 MB / 453.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.3012, allocations: 13.48 kB / 453.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001512/0.3013, allocations: 153.3 kB / 454 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002209/0.3015, allocations: 175.7 kB / 454.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001475/0.303, allocations: 1.004 MB / 455.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001956/0.3032, allocations: 299.7 kB / 455.4 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001786/0.3034, allocations: 131.3 kB / 455.6 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001617/0.305, allocations: 1.123 MB / 456.7 MB, free: 8.918 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.78e-05/0.3051, allocations: 6.281 kB / 456.7 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.773e-05/0.3052, allocations: 42.97 kB / 456.7 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.053e-05/0.3052, allocations: 28.56 kB / 456.8 MB, free: 8.879 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001244/0.3065, allocations: 0.722 MB / 457.5 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004909/0.3114, allocations: 3.824 MB / 461.3 MB, free: 5.426 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001497/0.3129, allocations: 0.8468 MB / 462.2 MB, free: 4.977 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006598/0.3136, allocations: 418.6 kB / 462.6 MB, free: 4.766 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.038e-05/0.3136, allocations: 18.33 kB / 462.6 MB, free: 4.762 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.849e-05/0.3137, allocations: 52.28 kB / 462.6 MB, free: 4.707 MB / 334.1 MB Notification: Performance of pre-optimization done (n=99): time 3.115e-06/0.3137, allocations: 0 / 462.6 MB, free: 4.707 MB / 334.1 MB Notification: Performance of matching and sorting (n=99): time 0.001861/0.3156, allocations: 1.084 MB / 463.7 MB, free: 4.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001722/0.3157, allocations: 379.7 kB / 464.1 MB, free: 3.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001011/0.3168, allocations: 0.9113 MB / 465 MB, free: 2.918 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.648e-05/0.3168, allocations: 49.7 kB / 465 MB, free: 2.863 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004784/0.3173, allocations: 0.6067 MB / 465.7 MB, free: 2.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002799/0.3176, allocations: 400.6 kB / 466 MB, free: 1.855 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003207/0.3179, allocations: 267.5 kB / 466.3 MB, free: 1.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.3181, allocations: 357.9 kB / 466.7 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006152/0.3187, allocations: 351.8 kB / 467 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009057/0.3196, allocations: 0.7564 MB / 467.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001504/0.3211, allocations: 1.076 MB / 468.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.625e-06/0.3211, allocations: 0 / 468.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.001962/0.3231, allocations: 1.277 MB / 470.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.3232, allocations: 12 kB / 470.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.3232, allocations: 8 kB / 470.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.725e-05/0.3232, allocations: 16.75 kB / 470.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001504/0.3247, allocations: 347.5 kB / 470.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.383e-05/0.3248, allocations: 23.92 kB / 470.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006406/0.3254, allocations: 143 kB / 470.6 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.909e-05/0.3255, allocations: 55.98 kB / 470.7 MB, free: 12.87 MB / 350.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.0004009/0.3259, allocations: 289.3 kB / 471 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/0.3261, allocations: 127.2 kB / 471.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001807/0.3279, allocations: 1.049 MB / 472.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.3279, allocations: 12 kB / 472.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.3279, allocations: 3.984 kB / 472.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.3279, allocations: 3.984 kB / 472.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/0.3291, allocations: 1.067 MB / 473.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.3291, allocations: 8 kB / 473.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001726/0.3309, allocations: 307.6 kB / 473.6 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.043e-06/0.3309, allocations: 7.938 kB / 473.6 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001346/0.331, allocations: 31.98 kB / 473.6 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.162e-06/0.331, allocations: 4 kB / 473.6 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.331, allocations: 0 / 473.6 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002137/0.3332, allocations: 1.468 MB / 475.1 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001835/0.3334, allocations: 212 kB / 475.3 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001237/0.3335, allocations: 28 kB / 475.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005137/0.334, allocations: 31.98 kB / 475.3 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/0.3342, allocations: 72.89 kB / 475.4 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.262e-05/0.3342, allocations: 31.98 kB / 475.4 MB, free: 8.043 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006813/0.3349, allocations: 0.5943 MB / 476 MB, free: 7.441 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3349, allocations: 0 / 476 MB, free: 7.441 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006886/0.3356, allocations: 231.6 kB / 476.3 MB, free: 7.207 MB / 350.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.002353/0.338, allocations: 2.054 MB / 478.3 MB, free: 5.121 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001497/0.3395, allocations: 0.9457 MB / 479.3 MB, free: 4.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.3395, allocations: 3.938 kB / 479.3 MB, free: 4.176 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006065/0.3401, allocations: 445.5 kB / 479.7 MB, free: 3.738 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006935/0.3408, allocations: 148 kB / 479.8 MB, free: 3.594 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0136/0.3544, allocations: 10.13 MB / 490 MB, free: 9.074 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007831/0.3552, allocations: 1.154 MB / 491.1 MB, free: 7.891 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006574/0.3559, allocations: 181.3 kB / 491.3 MB, free: 7.711 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006677/0.3566, allocations: 0.5422 MB / 491.8 MB, free: 7.168 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3566, allocations: 0 / 491.8 MB, free: 7.168 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04697/0.4036, allocations: 21.17 MB / 0.501 GB, free: 2.113 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.09/10.49, allocations: 3.859 kB / 0.501 GB, free: 2.109 MB / 382.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)