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.001244/0.001244, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 195 kB / 16.53 MB, free: 6.664 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.344/1.344, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05852/0.05852, allocations: 10.74 MB / 280.5 MB, free: 10.5 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.001445/0.001445, allocations: 63.91 kB / 340.7 MB, free: 23.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08024/0.08169, allocations: 49.01 MB / 389.7 MB, free: 6.152 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.ProcessControl): time 0.004987/0.08671, allocations: 4.183 MB / 393.8 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002762/0.08949, allocations: 1.7 MB / 395.5 MB, free: 240 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004381/0.08995, allocations: 71.38 kB / 395.6 MB, free: 168 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002876/0.09026, allocations: 149.9 kB / 395.8 MB, free: 16 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004688/0.09074, allocations: 170.3 kB / 395.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001517/0.09226, allocations: 0.8892 MB / 396.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0014/0.09368, allocations: 1.485 MB / 398.3 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000567/0.09425, allocations: 420.6 kB / 398.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006406/0.0949, allocations: 0.6185 MB / 399.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005615/0.09547, allocations: 0.567 MB / 399.9 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000165/0.09564, allocations: 120 kB / 400 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001387/0.09579, allocations: 124 kB / 400.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002332/0.09603, allocations: 310.8 kB / 400.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004512/0.09649, allocations: 0.6016 MB / 401 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001028/0.09752, allocations: 1.238 MB / 402.3 MB, free: 9.445 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.09754, allocations: 4 kB / 402.3 MB, free: 9.441 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.09754, allocations: 0 / 402.3 MB, free: 9.441 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.368e-05/0.09756, allocations: 0 / 402.3 MB, free: 9.441 MB / 302.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.002707/0.1003, allocations: 1.678 MB / 404 MB, free: 7.707 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.1003, allocations: 15.89 kB / 404 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001597/0.1005, allocations: 156.3 kB / 404.1 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002151/0.1007, allocations: 167 kB / 404.3 MB, free: 7.367 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001135/0.1019, allocations: 0.8815 MB / 405.2 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001846/0.1021, allocations: 304.2 kB / 405.5 MB, free: 6.082 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001637/0.1022, allocations: 124.2 kB / 405.6 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001527/0.1038, allocations: 1.121 MB / 406.7 MB, free: 4.746 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.514e-05/0.1038, allocations: 3.938 kB / 406.7 MB, free: 4.742 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.063e-05/0.1039, allocations: 51.98 kB / 406.8 MB, free: 4.691 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.063e-05/0.1039, allocations: 27.94 kB / 406.8 MB, free: 4.664 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001226/0.1051, allocations: 0.7182 MB / 407.5 MB, free: 3.945 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005226/0.1104, allocations: 3.84 MB / 411.3 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.1119, allocations: 0.8484 MB / 412.2 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006203/0.1126, allocations: 414.3 kB / 412.6 MB, free: 14.72 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.856e-05/0.1126, allocations: 24.97 kB / 412.6 MB, free: 14.7 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.95e-05/0.1127, allocations: 47.56 kB / 412.7 MB, free: 14.64 MB / 318.1 MB Notification: Performance of pre-optimization done (n=99): time 2.976e-06/0.1127, allocations: 0 / 412.7 MB, free: 14.64 MB / 318.1 MB Notification: Performance of matching and sorting (n=99): time 0.001886/0.1146, allocations: 1.08 MB / 413.8 MB, free: 13.55 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001722/0.1148, allocations: 376.8 kB / 414.1 MB, free: 13.1 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/0.1158, allocations: 0.9148 MB / 415 MB, free: 12.17 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.264e-05/0.1159, allocations: 53.64 kB / 415.1 MB, free: 12.11 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004161/0.1163, allocations: 0.5899 MB / 415.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002625/0.1166, allocations: 382.4 kB / 416.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003216/0.1169, allocations: 267.5 kB / 416.3 MB, free: 10.87 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.1171, allocations: 357.9 kB / 416.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000594/0.1177, allocations: 351.9 kB / 417 MB, free: 10.17 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008766/0.1186, allocations: 0.7525 MB / 417.8 MB, free: 9.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001555/0.1201, allocations: 1.08 MB / 418.8 MB, free: 8.039 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.1201, allocations: 0 / 418.8 MB, free: 8.039 MB / 318.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.00196/0.1221, allocations: 1.273 MB / 420.1 MB, free: 6.758 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.1222, allocations: 18.81 kB / 420.1 MB, free: 6.742 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.638e-05/0.1222, allocations: 12 kB / 420.1 MB, free: 6.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.531e-05/0.1222, allocations: 16 kB / 420.2 MB, free: 6.715 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001504/0.1237, allocations: 339.5 kB / 420.5 MB, free: 6.383 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.754e-05/0.1238, allocations: 23.92 kB / 420.5 MB, free: 6.359 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006641/0.1244, allocations: 138.6 kB / 420.6 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.212e-05/0.1245, allocations: 56 kB / 420.7 MB, free: 6.168 MB / 318.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.0004231/0.1249, allocations: 281.9 kB / 421 MB, free: 5.883 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/0.1251, allocations: 130.3 kB / 421.1 MB, free: 5.754 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001871/0.127, allocations: 1.049 MB / 422.2 MB, free: 4.691 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.626e-05/0.127, allocations: 12 kB / 422.2 MB, free: 4.68 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.127, allocations: 0 / 422.2 MB, free: 4.68 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.1271, allocations: 3.984 kB / 422.2 MB, free: 4.676 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001191/0.1283, allocations: 1.066 MB / 423.2 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1283, allocations: 0 / 423.2 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001716/0.13, allocations: 315.6 kB / 423.5 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.988e-06/0.13, allocations: 7.984 kB / 423.6 MB, free: 3.246 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.582e-05/0.1301, allocations: 31.98 kB / 423.6 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.099e-06/0.1301, allocations: 4 kB / 423.6 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1301, allocations: 0 / 423.6 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002107/0.1322, allocations: 1.455 MB / 425 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001882/0.1324, allocations: 211.2 kB / 425.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/0.1326, allocations: 27.94 kB / 425.3 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005215/0.1331, allocations: 31.98 kB / 425.3 MB, free: 1.453 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001665/0.1333, allocations: 72.89 kB / 425.4 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.596e-05/0.1333, allocations: 31.98 kB / 425.4 MB, free: 1.352 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007378/0.1341, allocations: 0.5865 MB / 426 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1341, allocations: 8 kB / 426 MB, free: 0.75 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006882/0.1348, allocations: 231.4 kB / 426.2 MB, free: 0.5234 MB / 318.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.1514/0.2862, allocations: 2.034 MB / 428.3 MB, free: 41.69 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002242/0.2885, allocations: 0.9945 MB / 429.3 MB, free: 41.66 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.2885, allocations: 1.125 kB / 429.3 MB, free: 41.66 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005956/0.2891, allocations: 456 kB / 429.7 MB, free: 41.54 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007012/0.2898, allocations: 149.6 kB / 429.9 MB, free: 41.46 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01223/0.3021, allocations: 10.95 MB / 440.8 MB, free: 35.18 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005087/0.3026, allocations: 1.155 MB / 442 MB, free: 34.45 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006869/0.3033, allocations: 177.5 kB / 442.1 MB, free: 34.41 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005562/0.3039, allocations: 0.5377 MB / 442.7 MB, free: 34 MB / 318.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3039, allocations: 3.938 kB / 442.7 MB, free: 34 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03838/0.3423, allocations: 20.86 MB / 463.5 MB, free: 17.1 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.004/8.346, allocations: 4.297 kB / 463.5 MB, free: 17.1 MB / 318.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)