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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001063/0.001063, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05951/0.05951, allocations: 10.67 MB / 18.73 MB, free: 1.324 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.912/1.912, allocations: 205.3 MB / 226.9 MB, free: 7.969 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008713/0.0008716, allocations: 86.42 kB / 277.3 MB, free: 5.516 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 1.571e-05/1.573e-05, allocations: 0 / 333.6 MB, free: 28.41 MB / 250.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1263, allocations: 50.01 MB / 383.6 MB, free: 10.36 MB / 282.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.463/0.5894, allocations: 79.18 MB / 462.8 MB, free: 5.355 MB / 330.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/0.5897, allocations: 72.64 kB / 462.9 MB, free: 5.316 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.0542/0.6439, allocations: 19.58 MB / 482.5 MB, free: 5.133 MB / 346.8 MB Notification: Performance of FrontEnd: time 1.954e-06/0.644, allocations: 0 / 482.5 MB, free: 5.133 MB / 346.8 MB Notification: Performance of Transformations before backend: time 7.776e-05/0.6441, allocations: 32 kB / 482.5 MB, free: 5.102 MB / 346.8 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.00276/0.6469, allocations: 1.348 MB / 483.8 MB, free: 3.797 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.763e-05/0.647, allocations: 15.97 kB / 483.9 MB, free: 3.781 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003045/0.6473, allocations: 174 kB / 484 MB, free: 3.609 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002342/0.6496, allocations: 1.043 MB / 485.1 MB, free: 2.645 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002657/0.6499, allocations: 255.8 kB / 485.3 MB, free: 2.344 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001684/0.6501, allocations: 82 kB / 485.4 MB, free: 2.27 MB / 346.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001205/0.6513, allocations: 0.6207 MB / 486 MB, free: 1.871 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001785/0.6531, allocations: 1.099 MB / 487.1 MB, free: 0.8359 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.608e-05/0.6531, allocations: 7.984 kB / 487.1 MB, free: 0.8281 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.537e-05/0.6532, allocations: 4 kB / 487.1 MB, free: 0.8242 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.28e-05/0.6533, allocations: 24 kB / 487.2 MB, free: 0.8008 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005192/0.6585, allocations: 3.691 MB / 490.8 MB, free: 13.62 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001243/0.6598, allocations: 0.77 MB / 491.6 MB, free: 13.16 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004406/0.6602, allocations: 374 kB / 492 MB, free: 12.94 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 7.729e-05/0.6603, allocations: 17.38 kB / 492 MB, free: 12.93 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.6603, allocations: 51.56 kB / 492 MB, free: 12.88 MB / 362.8 MB Notification: Performance of pre-optimization done (n=99): time 3.717e-06/0.6603, allocations: 0 / 492 MB, free: 12.88 MB / 362.8 MB Notification: Performance of matching and sorting (n=99): time 0.001194/0.6615, allocations: 0.7422 MB / 492.8 MB, free: 12.3 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002064/0.6618, allocations: 381.1 kB / 493.2 MB, free: 11.84 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009222/0.6627, allocations: 0.7217 MB / 493.9 MB, free: 11.29 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 6.515e-05/0.6628, allocations: 25.7 kB / 493.9 MB, free: 11.26 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.000453/0.6632, allocations: 0.5836 MB / 494.5 MB, free: 10.9 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003201/0.6636, allocations: 365.8 kB / 494.9 MB, free: 10.59 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.179e-05/0.6636, allocations: 0 / 494.9 MB, free: 10.59 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001943/0.6638, allocations: 362.2 kB / 495.2 MB, free: 10.25 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004806/0.6643, allocations: 300.6 kB / 495.5 MB, free: 10.09 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00077/0.6651, allocations: 0.6953 MB / 496.2 MB, free: 9.379 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006089/0.6657, allocations: 408.1 kB / 496.6 MB, free: 9.125 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.725e-06/0.6657, allocations: 4 kB / 496.6 MB, free: 9.121 MB / 362.8 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.001656/0.6674, allocations: 1.092 MB / 497.7 MB, free: 8.277 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.698e-05/0.6674, allocations: 8.938 kB / 497.7 MB, free: 8.27 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.73e-05/0.6674, allocations: 12 kB / 497.7 MB, free: 8.258 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.378e-05/0.6675, allocations: 19.95 kB / 497.7 MB, free: 8.238 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001504/0.669, allocations: 349 kB / 498.1 MB, free: 7.91 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.04e-05/0.669, allocations: 27.88 kB / 498.1 MB, free: 7.883 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006118/0.6696, allocations: 94.78 kB / 498.2 MB, free: 7.789 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.253e-05/0.6697, allocations: 53.12 kB / 498.2 MB, free: 7.746 MB / 362.8 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.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_FS.ATreq_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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002285/0.67, allocations: 149.3 kB / 498.4 MB, free: 7.602 MB / 362.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001087/0.6711, allocations: 0.7429 MB / 499.1 MB, free: 7.035 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.6712, allocations: 126.4 kB / 499.3 MB, free: 6.91 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001653/0.6729, allocations: 0.9512 MB / 0.4885 GB, free: 6.211 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.6729, allocations: 8 kB / 0.4885 GB, free: 6.203 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/0.6729, allocations: 4 kB / 0.4885 GB, free: 6.199 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.6729, allocations: 7.922 kB / 0.4885 GB, free: 6.191 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001245/0.6742, allocations: 0.9398 MB / 0.4894 GB, free: 5.473 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.6742, allocations: 0 / 0.4894 GB, free: 5.473 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001745/0.676, allocations: 314.3 kB / 0.4897 GB, free: 5.176 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.398e-05/0.676, allocations: 4 kB / 0.4897 GB, free: 5.172 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.079e-05/0.6761, allocations: 21.86 kB / 0.4897 GB, free: 5.156 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.099e-05/0.6761, allocations: 7.953 kB / 0.4897 GB, free: 5.148 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.6761, allocations: 0 / 0.4897 GB, free: 5.148 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001897/0.678, allocations: 1.337 MB / 0.4911 GB, free: 3.898 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001894/0.6782, allocations: 211.1 kB / 0.4913 GB, free: 3.672 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001212/0.6783, allocations: 16 kB / 0.4913 GB, free: 3.656 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004974/0.6788, allocations: 11.98 kB / 0.4913 GB, free: 3.645 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.679, allocations: 73.16 kB / 0.4914 GB, free: 3.574 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.106e-05/0.679, allocations: 31.98 kB / 0.4914 GB, free: 3.543 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0006451/0.6797, allocations: 0.5163 MB / 0.4919 GB, free: 3.02 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6797, allocations: 0 / 0.4919 GB, free: 3.02 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0007898/0.6805, allocations: 179.5 kB / 0.4921 GB, free: 2.844 MB / 362.8 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002057/0.6826, allocations: 1.906 MB / 0.4939 GB, free: 0.9102 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.00141/0.684, allocations: 0.8427 MB / 0.4947 GB, free: 68 kB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.684, allocations: 0 / 0.4947 GB, free: 68 kB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.000538/0.6845, allocations: 408.9 kB / 0.4951 GB, free: 15.67 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005612/0.6851, allocations: 105.2 kB / 0.4952 GB, free: 15.57 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004576/0.6897, allocations: 2.465 MB / 0.4976 GB, free: 13.04 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008819/0.6906, allocations: 1.185 MB / 0.4988 GB, free: 11.82 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0007576/0.6914, allocations: 181.3 kB / 0.499 GB, free: 11.64 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006894/0.6921, allocations: 0.5344 MB / 0.4995 GB, free: 11.11 MB / 378.8 MB Notification: Performance of SimCode: time 1.192e-06/0.6921, allocations: 0 / 0.4995 GB, free: 11.11 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04583/0.7379, allocations: 18.45 MB / 0.5175 GB, free: 8.688 MB / 394.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002207/0.7382, allocations: 177.1 kB / 0.5177 GB, free: 8.492 MB / 394.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.98/3.719, allocations: 3.938 kB / 0.5177 GB, free: 8.488 MB / 394.8 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/linux/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)