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.008959/0.008959, allocations: 99.38 kB / 15.73 MB, free: 6.008 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.002199/0.002199, allocations: 197.5 kB / 16.67 MB, free: 5.934 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.469/1.469, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06453/0.06453, allocations: 10.75 MB / 280.7 MB, free: 10.41 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.00217/0.00217, allocations: 72.12 kB / 390.3 MB, free: 5.531 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2631, allocations: 49.02 MB / 439.4 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.ProcessControl): time 0.004622/0.2678, allocations: 4.206 MB / 443.6 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003258/0.271, allocations: 1.685 MB / 445.3 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00101/0.272, allocations: 71.44 kB / 445.3 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004123/0.2724, allocations: 158.1 kB / 445.5 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007127/0.2731, allocations: 172.1 kB / 445.6 MB, free: 460 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002094/0.2752, allocations: 0.893 MB / 446.5 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002068/0.2773, allocations: 1.497 MB / 448 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006089/0.2779, allocations: 307.1 kB / 448.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009482/0.2789, allocations: 0.6392 MB / 449 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007137/0.2796, allocations: 0.5705 MB / 449.5 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001725/0.2798, allocations: 122.6 kB / 449.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001333/0.2799, allocations: 124.2 kB / 449.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002754/0.2802, allocations: 303.3 kB / 450.1 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005293/0.2807, allocations: 0.6051 MB / 450.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001435/0.2821, allocations: 1.292 MB / 452 MB, free: 12.42 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.2821, allocations: 5.781 kB / 452 MB, free: 12.42 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.2821, allocations: 0 / 452 MB, free: 12.42 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.802e-05/0.2822, allocations: 0 / 452 MB, free: 12.42 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.003158/0.2853, allocations: 1.72 MB / 453.7 MB, free: 11.1 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.2854, allocations: 13.45 kB / 453.7 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002029/0.2856, allocations: 153.3 kB / 453.9 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002881/0.2859, allocations: 171.1 kB / 454 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001677/0.2875, allocations: 0.9959 MB / 455 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002444/0.2878, allocations: 308.2 kB / 455.3 MB, free: 9.809 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000192/0.288, allocations: 123.8 kB / 455.5 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001906/0.2899, allocations: 1.127 MB / 456.6 MB, free: 8.945 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.089e-05/0.2899, allocations: 2.562 kB / 456.6 MB, free: 8.945 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.603e-05/0.29, allocations: 42.16 kB / 456.6 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.947e-05/0.29, allocations: 25.06 kB / 456.7 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00139/0.2914, allocations: 0.7256 MB / 457.4 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005979/0.2974, allocations: 3.825 MB / 461.2 MB, free: 5.457 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001752/0.2991, allocations: 0.8129 MB / 462 MB, free: 5.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006939/0.2998, allocations: 398.7 kB / 462.4 MB, free: 4.812 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.031e-05/0.2999, allocations: 21.69 kB / 462.4 MB, free: 4.805 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.769e-05/0.3, allocations: 48.95 kB / 462.5 MB, free: 4.754 MB / 334.1 MB Notification: Performance of pre-optimization done (n=99): time 3.126e-06/0.3, allocations: 1.438 kB / 462.5 MB, free: 4.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=99): time 0.002178/0.3022, allocations: 1.087 MB / 463.6 MB, free: 4.223 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002476/0.3024, allocations: 377.4 kB / 463.9 MB, free: 3.777 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001207/0.3036, allocations: 0.9166 MB / 464.8 MB, free: 3.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.108e-05/0.3037, allocations: 49.7 kB / 464.9 MB, free: 3.016 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004972/0.3042, allocations: 0.5988 MB / 465.5 MB, free: 2.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003318/0.3045, allocations: 400.6 kB / 465.9 MB, free: 2.016 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003654/0.3049, allocations: 263.5 kB / 466.1 MB, free: 1.754 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.3051, allocations: 357.9 kB / 466.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006846/0.3058, allocations: 355.8 kB / 466.8 MB, free: 1.051 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009908/0.3068, allocations: 0.7525 MB / 467.6 MB, free: 124 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001686/0.3084, allocations: 1.088 MB / 468.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/0.3084, allocations: 4 kB / 468.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.002236/0.3107, allocations: 1.27 MB / 470 MB, free: 13.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.3107, allocations: 12.25 kB / 470 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.3107, allocations: 8 kB / 470 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.178e-05/0.3108, allocations: 19.98 kB / 470 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001483/0.3122, allocations: 347.5 kB / 470.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.617e-05/0.3123, allocations: 19.94 kB / 470.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007614/0.313, allocations: 142.9 kB / 470.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.736e-05/0.3131, allocations: 63.98 kB / 470.6 MB, free: 13.02 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.0005462/0.3137, allocations: 277.3 kB / 470.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002071/0.3139, allocations: 131.2 kB / 471 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001966/0.3158, allocations: 1.045 MB / 472 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.291e-05/0.3158, allocations: 16 kB / 472 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3159, allocations: 0 / 472 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.3159, allocations: 7.969 kB / 472 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001461/0.3173, allocations: 1.074 MB / 473.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.3173, allocations: 0 / 473.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001819/0.3191, allocations: 307.6 kB / 473.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.159e-05/0.3192, allocations: 4 kB / 473.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.816e-05/0.3192, allocations: 31.98 kB / 473.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.464e-06/0.3193, allocations: 4 kB / 473.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3193, allocations: 0 / 473.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002366/0.3216, allocations: 1.464 MB / 474.9 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002406/0.3219, allocations: 212 kB / 475.1 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001404/0.322, allocations: 27.98 kB / 475.1 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005437/0.3225, allocations: 35.98 kB / 475.2 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/0.3227, allocations: 76.89 kB / 475.2 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.454e-05/0.3228, allocations: 35.92 kB / 475.3 MB, free: 8.195 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007865/0.3236, allocations: 0.5826 MB / 475.9 MB, free: 7.605 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3236, allocations: 0 / 475.9 MB, free: 7.605 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00075/0.3243, allocations: 231.6 kB / 476.1 MB, free: 7.379 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.002672/0.327, allocations: 2.054 MB / 478.1 MB, free: 5.293 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001717/0.3287, allocations: 0.8819 MB / 479 MB, free: 4.414 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.3287, allocations: 7.938 kB / 479 MB, free: 4.406 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007101/0.3294, allocations: 431 kB / 479.5 MB, free: 3.984 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007691/0.3302, allocations: 140.4 kB / 479.6 MB, free: 3.844 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01476/0.3449, allocations: 10.13 MB / 489.7 MB, free: 9.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008054/0.3458, allocations: 1.162 MB / 490.9 MB, free: 8.129 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006737/0.3464, allocations: 173.3 kB / 491.1 MB, free: 7.957 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007289/0.3472, allocations: 0.5383 MB / 491.6 MB, free: 7.418 MB / 366.1 MB Notification: Performance of SimCode: time 1.113e-06/0.3472, allocations: 0 / 491.6 MB, free: 7.418 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05558/0.4027, allocations: 21.23 MB / 0.5008 GB, free: 2.312 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.09, allocations: 15.67 kB / 0.5008 GB, free: 2.297 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)