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.01093/0.01093, allocations: 100.7 kB / 15.73 MB, free: 6.039 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.002009/0.002009, allocations: 186.9 kB / 16.67 MB, free: 5.977 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.393/1.393, allocations: 205.1 MB / 222.6 MB, free: 4.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0601/0.0601, allocations: 10.74 MB / 280.6 MB, free: 10.47 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.001717/0.001717, allocations: 68.33 kB / 390.3 MB, free: 5.555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2632, allocations: 49.02 MB / 439.3 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.ProcessControl): time 0.005478/0.2687, allocations: 4.193 MB / 443.5 MB, free: 1.988 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003516/0.2723, allocations: 1.69 MB / 445.2 MB, free: 0.793 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001151/0.2735, allocations: 68.78 kB / 445.3 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005564/0.2741, allocations: 152.1 kB / 445.4 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009975/0.2751, allocations: 166.9 kB / 445.6 MB, free: 500 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002376/0.2775, allocations: 0.8959 MB / 446.5 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002472/0.28, allocations: 1.502 MB / 448 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008506/0.2809, allocations: 422.8 kB / 448.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001096/0.282, allocations: 0.6413 MB / 449.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008225/0.2828, allocations: 0.5703 MB / 449.6 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000239/0.2831, allocations: 129.3 kB / 449.8 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001927/0.2833, allocations: 122.7 kB / 449.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000285/0.2835, allocations: 306.2 kB / 450.2 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005712/0.2841, allocations: 0.6046 MB / 450.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001238/0.2854, allocations: 1.276 MB / 452.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.2854, allocations: 0 / 452.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2854, allocations: 0 / 452.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.487e-05/0.2854, allocations: 3.984 kB / 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.002943/0.2884, allocations: 1.679 MB / 453.7 MB, free: 11.13 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.2884, allocations: 14.17 kB / 453.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001783/0.2886, allocations: 153.2 kB / 453.9 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002289/0.2889, allocations: 165.6 kB / 454.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001598/0.2905, allocations: 0.9949 MB / 455.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001972/0.2907, allocations: 303.5 kB / 455.4 MB, free: 9.844 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001713/0.2909, allocations: 124.3 kB / 455.5 MB, free: 9.797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001615/0.2925, allocations: 1.116 MB / 456.6 MB, free: 8.992 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.038e-05/0.2925, allocations: 8.938 kB / 456.6 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.554e-05/0.2926, allocations: 42.66 kB / 456.6 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.519e-05/0.2926, allocations: 32.61 kB / 456.7 MB, free: 8.945 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00127/0.2939, allocations: 0.7262 MB / 457.4 MB, free: 8.602 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005522/0.2995, allocations: 3.816 MB / 461.2 MB, free: 5.496 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001904/0.3014, allocations: 0.8415 MB / 462.1 MB, free: 5.051 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007946/0.3022, allocations: 414.4 kB / 462.5 MB, free: 4.844 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.57e-05/0.3023, allocations: 24.61 kB / 462.5 MB, free: 4.832 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.419e-05/0.3024, allocations: 45.09 kB / 462.5 MB, free: 4.785 MB / 334.1 MB Notification: Performance of pre-optimization done (n=99): time 3.837e-06/0.3024, allocations: 5.125 kB / 462.5 MB, free: 4.781 MB / 334.1 MB Notification: Performance of matching and sorting (n=99): time 0.002187/0.3046, allocations: 1.086 MB / 463.6 MB, free: 4.25 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001701/0.3048, allocations: 372.8 kB / 464 MB, free: 3.809 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001197/0.306, allocations: 0.9129 MB / 464.9 MB, free: 2.992 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001245/0.3061, allocations: 49.7 kB / 464.9 MB, free: 2.938 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005074/0.3066, allocations: 0.5898 MB / 465.5 MB, free: 2.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003178/0.307, allocations: 374.5 kB / 465.9 MB, free: 1.969 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003662/0.3073, allocations: 267.4 kB / 466.2 MB, free: 1.703 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.3075, allocations: 365.9 kB / 466.5 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005856/0.3081, allocations: 351.9 kB / 466.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00085/0.3089, allocations: 0.7525 MB / 467.6 MB, free: 68 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001441/0.3104, allocations: 1.08 MB / 468.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.3104, allocations: 0 / 468.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.001965/0.3124, allocations: 1.276 MB / 470 MB, free: 13.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.604e-05/0.3124, allocations: 12 kB / 470 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.3125, allocations: 8 kB / 470 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.202e-05/0.3125, allocations: 19.94 kB / 470 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001508/0.314, allocations: 344 kB / 470.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.748e-05/0.314, allocations: 23.92 kB / 470.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007168/0.3148, allocations: 138.6 kB / 470.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.293e-05/0.3148, allocations: 56 kB / 470.6 MB, free: 12.98 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.0004256/0.3153, allocations: 281.3 kB / 470.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001716/0.3155, allocations: 118.5 kB / 471 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001716/0.3172, allocations: 1.057 MB / 472 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.3172, allocations: 12 kB / 472 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.3172, allocations: 0 / 472 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.3172, allocations: 3.984 kB / 472 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001219/0.3185, allocations: 1.066 MB / 473.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.3185, allocations: 0 / 473.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001831/0.3203, allocations: 311.6 kB / 473.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.055e-05/0.3203, allocations: 7.984 kB / 473.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.585e-05/0.3204, allocations: 28 kB / 473.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.835e-06/0.3204, allocations: 7.984 kB / 473.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3204, allocations: 0 / 473.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002091/0.3225, allocations: 1.459 MB / 474.9 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001741/0.3227, allocations: 207.2 kB / 475.1 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000129/0.3229, allocations: 24 kB / 475.1 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005105/0.3234, allocations: 31.98 kB / 475.2 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.3235, allocations: 76.89 kB / 475.2 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.636e-05/0.3236, allocations: 31.98 kB / 475.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006481/0.3242, allocations: 0.5904 MB / 475.9 MB, free: 7.582 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3242, allocations: 0 / 475.9 MB, free: 7.582 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006742/0.3249, allocations: 231.4 kB / 476.1 MB, free: 7.355 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.002387/0.3273, allocations: 2.038 MB / 478.1 MB, free: 5.285 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00164/0.329, allocations: 0.9418 MB / 479.1 MB, free: 4.348 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.329, allocations: 7.938 kB / 479.1 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006437/0.3297, allocations: 453.7 kB / 479.5 MB, free: 3.895 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008631/0.3305, allocations: 156 kB / 479.7 MB, free: 3.742 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01336/0.3439, allocations: 10.07 MB / 489.7 MB, free: 9.285 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006405/0.3446, allocations: 1.154 MB / 490.9 MB, free: 8.102 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007006/0.3453, allocations: 181.3 kB / 491.1 MB, free: 7.918 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006516/0.346, allocations: 0.5383 MB / 491.6 MB, free: 7.379 MB / 366.1 MB Notification: Performance of SimCode: time 9.11e-07/0.346, allocations: 0 / 491.6 MB, free: 7.379 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04911/0.3951, allocations: 21.57 MB / 0.5011 GB, free: 1.926 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.56/10.95, allocations: 7.797 kB / 0.5012 GB, free: 1.918 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Applications_ControlProblems_ProcessControl_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Applications_ControlProblems_ProcessControl.fmu > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.pipe 2>&1)