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.001045/0.001045, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05888/0.05888, allocations: 10.66 MB / 23.92 MB, free: 1.609 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.733/1.733, allocations: 205.2 MB / 232.1 MB, free: 12.76 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008868/0.0008867, allocations: 97.16 kB / 282.6 MB, free: 13.57 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 3.966e-05/3.984e-05, allocations: 4 kB / 340.6 MB, free: 3.508 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3163/0.3163, allocations: 49.98 MB / 390.6 MB, free: 35.7 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.113/0.4294, allocations: 79.53 MB / 470.1 MB, free: 4.066 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002962/0.4298, allocations: 71.97 kB / 470.2 MB, free: 3.996 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.08758/0.5174, allocations: 19.71 MB / 489.9 MB, free: 228 kB / 362.8 MB Notification: Performance of FrontEnd: time 2.886e-06/0.5175, allocations: 0 / 489.9 MB, free: 228 kB / 362.8 MB Notification: Performance of Transformations before backend: time 0.0001272/0.5176, allocations: 43.92 kB / 489.9 MB, free: 184 kB / 362.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.00458/0.5222, allocations: 1.345 MB / 491.3 MB, free: 14.79 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 8.144e-05/0.5223, allocations: 8.031 kB / 491.3 MB, free: 14.78 MB / 378.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002645/0.5226, allocations: 152.1 kB / 491.4 MB, free: 14.62 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004729/0.5231, allocations: 174 kB / 491.6 MB, free: 14.45 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003254/0.5263, allocations: 1.051 MB / 492.6 MB, free: 13.34 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003043/0.5266, allocations: 299.8 kB / 492.9 MB, free: 13 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002896/0.527, allocations: 123.8 kB / 493.1 MB, free: 12.88 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002886/0.5299, allocations: 1.252 MB / 494.3 MB, free: 11.46 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.334e-05/0.5299, allocations: 0 / 494.3 MB, free: 11.46 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.53, allocations: 52 kB / 494.4 MB, free: 11.41 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.723e-05/0.5301, allocations: 27.94 kB / 494.4 MB, free: 11.38 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002005/0.5321, allocations: 0.6871 MB / 495.1 MB, free: 10.7 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009404/0.5415, allocations: 3.848 MB / 498.9 MB, free: 6.734 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002462/0.544, allocations: 0.83 MB / 499.7 MB, free: 5.891 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001035/0.5451, allocations: 406.4 kB / 0.4884 GB, free: 5.496 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000133/0.5453, allocations: 21.05 kB / 0.4884 GB, free: 5.477 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.388e-05/0.5454, allocations: 47.56 kB / 0.4885 GB, free: 5.418 MB / 378.8 MB Notification: Performance of pre-optimization done (n=99): time 5.17e-06/0.5454, allocations: 0 / 0.4885 GB, free: 5.418 MB / 378.8 MB Notification: Performance of matching and sorting (n=99): time 0.002223/0.5476, allocations: 0.7843 MB / 0.4893 GB, free: 4.625 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003341/0.548, allocations: 380.8 kB / 0.4896 GB, free: 4.168 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00116/0.5491, allocations: 0.7692 MB / 0.4904 GB, free: 3.383 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001142/0.5493, allocations: 53.7 kB / 0.4904 GB, free: 3.324 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006581/0.5499, allocations: 0.586 MB / 0.491 GB, free: 2.73 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004736/0.5504, allocations: 386.4 kB / 0.4914 GB, free: 2.348 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.575e-05/0.5505, allocations: 28 kB / 0.4914 GB, free: 2.32 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0002473/0.5508, allocations: 353.9 kB / 0.4917 GB, free: 1.969 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008519/0.5516, allocations: 339.9 kB / 0.492 GB, free: 1.641 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001446/0.5531, allocations: 0.7292 MB / 0.4928 GB, free: 0.7383 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001155/0.5543, allocations: 448.7 kB / 0.4932 GB, free: 312 kB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/0.5543, allocations: 0 / 0.4932 GB, free: 312 kB / 378.8 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.299/0.8533, allocations: 1.222 MB / 0.4944 GB, free: 97.51 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.705e-05/0.8535, allocations: 10.55 kB / 0.4944 GB, free: 97.51 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.101e-05/0.8535, allocations: 11.17 kB / 0.4944 GB, free: 97.51 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.173e-05/0.8536, allocations: 17.09 kB / 0.4944 GB, free: 97.51 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002207/0.8558, allocations: 350.4 kB / 0.4948 GB, free: 97.51 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.581e-05/0.8559, allocations: 24.02 kB / 0.4948 GB, free: 97.51 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00121/0.8572, allocations: 116.2 kB / 0.4949 GB, free: 97.51 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000258/0.8575, allocations: 58.14 kB / 0.4949 GB, free: 97.51 MB / 378.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.0005308/0.858, allocations: 193.8 kB / 0.4951 GB, free: 97.4 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005478/0.8586, allocations: 122.2 kB / 0.4952 GB, free: 97.4 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002676/0.8612, allocations: 1.026 MB / 0.4962 GB, free: 97.34 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.454e-05/0.8613, allocations: 11.06 kB / 0.4963 GB, free: 97.34 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.8613, allocations: 2.406 kB / 0.4963 GB, free: 97.34 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.867e-05/0.8613, allocations: 9.344 kB / 0.4963 GB, free: 97.34 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001765/0.8631, allocations: 1.062 MB / 0.4973 GB, free: 97.16 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.8631, allocations: 0 / 0.4973 GB, free: 97.16 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001869/0.865, allocations: 314.7 kB / 0.4976 GB, free: 97.15 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-05/0.865, allocations: 3.844 kB / 0.4976 GB, free: 97.15 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001071/0.8651, allocations: 36.64 kB / 0.4976 GB, free: 97.15 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.057e-06/0.8651, allocations: 3.719 kB / 0.4976 GB, free: 97.15 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.8652, allocations: 3.859 kB / 0.4977 GB, free: 97.15 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00225/0.8674, allocations: 1.402 MB / 0.499 GB, free: 96.97 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001701/0.8676, allocations: 202 kB / 0.4992 GB, free: 96.81 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001384/0.8677, allocations: 36.72 kB / 0.4992 GB, free: 96.81 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005305/0.8683, allocations: 35.77 kB / 0.4993 GB, free: 96.81 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001412/0.8684, allocations: 66.59 kB / 0.4993 GB, free: 96.81 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.396e-05/0.8685, allocations: 33.58 kB / 0.4994 GB, free: 96.81 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0006552/0.8692, allocations: 0.5648 MB / 0.4999 GB, free: 96.69 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.61e-07/0.8692, allocations: 0 / 0.4999 GB, free: 96.69 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0008457/0.87, allocations: 224.3 kB / 0.5001 GB, free: 96.68 MB / 378.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.002054/0.8721, allocations: 2.008 MB / 0.5021 GB, free: 95.9 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.001539/0.8736, allocations: 0.9099 MB / 0.503 GB, free: 95.85 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.8736, allocations: 0 / 0.503 GB, free: 95.85 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0005365/0.8742, allocations: 432.9 kB / 0.5034 GB, free: 95.7 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005336/0.8747, allocations: 126.2 kB / 0.5035 GB, free: 95.63 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004188/0.8789, allocations: 2.562 MB / 0.506 GB, free: 94.57 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005699/0.8795, allocations: 1.189 MB / 0.5072 GB, free: 93.86 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0007572/0.8803, allocations: 181.6 kB / 0.5074 GB, free: 93.85 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006405/0.8809, allocations: 0.5331 MB / 0.5079 GB, free: 93.44 MB / 378.8 MB Notification: Performance of SimCode: time 2.134e-06/0.8809, allocations: 0 / 0.5079 GB, free: 93.44 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03492/0.9159, allocations: 19.27 MB / 0.5267 GB, free: 77.93 MB / 378.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002105/0.9162, allocations: 183 kB / 0.5269 GB, free: 77.71 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.785/3.701, allocations: 0 / 0.5269 GB, free: 77.71 MB / 378.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)