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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.007167/0.007167, allocations: 97.27 kB / 15.73 MB, free: 5.602 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.001791/0.001791, allocations: 193.2 kB / 16.68 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 14.96 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06501/0.06501, allocations: 11.2 MB / 301.7 MB, free: 4.027 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 63.47 kB / 417.3 MB, free: 19.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08233/0.08416, allocations: 51.98 MB / 469.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.ProcessControl): time 0.005575/0.08977, allocations: 4.405 MB / 473.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003213/0.093, allocations: 1.833 MB / 475.6 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004298/0.09344, allocations: 71.38 kB / 475.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003456/0.09381, allocations: 177.6 kB / 475.8 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004895/0.09431, allocations: 182.1 kB / 476 MB, free: 8.418 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001535/0.09585, allocations: 0.9633 MB / 476.9 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001576/0.09744, allocations: 1.624 MB / 478.6 MB, free: 5.824 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000609/0.09806, allocations: 432.7 kB / 479 MB, free: 5.367 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006806/0.09875, allocations: 0.6535 MB / 479.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006529/0.09941, allocations: 0.6019 MB / 480.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001802/0.09959, allocations: 128 kB / 480.4 MB, free: 3.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001763/0.09978, allocations: 132 kB / 480.5 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002863/0.1001, allocations: 326.7 kB / 480.8 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000527/0.1006, allocations: 0.6443 MB / 481.5 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001314/0.1019, allocations: 1.384 MB / 482.9 MB, free: 1.492 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.1019, allocations: 0 / 482.9 MB, free: 1.492 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.376e-06/0.1019, allocations: 0 / 482.9 MB, free: 1.492 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.588e-05/0.102, allocations: 3.938 kB / 482.9 MB, free: 1.488 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 277 * Number of variables: 277 Notification: Performance of Generate backend data structure: time 0.002961/0.1049, allocations: 1.83 MB / 484.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.105, allocations: 15.89 kB / 484.7 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001902/0.1052, allocations: 165.1 kB / 484.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002514/0.1054, allocations: 191.8 kB / 485.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00164/0.1071, allocations: 1.07 MB / 486.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002337/0.1073, allocations: 304.7 kB / 486.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001789/0.1075, allocations: 140.3 kB / 486.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001922/0.1094, allocations: 1.302 MB / 487.9 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.018e-05/0.1095, allocations: 3.938 kB / 487.9 MB, free: 12.13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.536e-05/0.1096, allocations: 52 kB / 487.9 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.826e-05/0.1096, allocations: 31.94 kB / 487.9 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001409/0.111, allocations: 0.7804 MB / 488.7 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006167/0.1172, allocations: 5.301 MB / 494 MB, free: 5.801 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001583/0.1188, allocations: 0.8332 MB / 494.9 MB, free: 4.961 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006513/0.1195, allocations: 414.3 kB / 495.3 MB, free: 4.555 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.964e-05/0.1196, allocations: 28.98 kB / 495.3 MB, free: 4.523 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.522e-05/0.1196, allocations: 51.56 kB / 495.3 MB, free: 4.465 MB / 366.1 MB Notification: Performance of pre-optimization done (n=99): time 2.364e-06/0.1197, allocations: 0 / 495.3 MB, free: 4.465 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.001932/0.1216, allocations: 1.1 MB / 496.4 MB, free: 3.363 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002052/0.1218, allocations: 376.8 kB / 496.8 MB, free: 2.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001183/0.123, allocations: 1.014 MB / 497.8 MB, free: 1.887 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.125e-05/0.1231, allocations: 53.7 kB / 497.9 MB, free: 1.828 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005181/0.1236, allocations: 0.6653 MB / 498.5 MB, free: 1.156 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002994/0.1239, allocations: 396.7 kB / 498.9 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003829/0.1243, allocations: 307.5 kB / 499.2 MB, free: 472 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.1244, allocations: 305.1 kB / 499.5 MB, free: 164 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006572/0.1251, allocations: 367.8 kB / 499.9 MB, free: 15.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001063/0.1262, allocations: 0.86 MB / 0.489 GB, free: 14.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001709/0.1279, allocations: 1.211 MB / 0.4902 GB, free: 13.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.1279, allocations: 4 kB / 0.4902 GB, free: 13.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002158/0.1301, allocations: 1.39 MB / 0.4916 GB, free: 11.92 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.1301, allocations: 8 kB / 0.4916 GB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.044e-05/0.1301, allocations: 19.98 kB / 0.4916 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.11e-05/0.1301, allocations: 20.75 kB / 0.4916 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001494/0.1316, allocations: 359.4 kB / 0.4919 GB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.688e-05/0.1317, allocations: 35.86 kB / 0.492 GB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000724/0.1324, allocations: 150.9 kB / 0.4921 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.115e-05/0.1325, allocations: 60 kB / 0.4922 GB, free: 11.28 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 32 (R_FS.satLOW_in,R_FS.satHIGH_in,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.satLOW_in,R_Osc.satHIGH_in,R_Osc.ATreq_in,R_US.satLOW_in,R_US.satHIGH_in,R_US.ATreq_in,R_OS.satLOW_in,R_OS.satHIGH_in,R_OS.ATreq_in,R_iD.satLOW_in,R_iD.satHIGH_in,R_iD.ATreq_in,R_i.satLOW_in,R_i.satHIGH_in,R_i.ATreq_in,R_FOD.satLOW_in,R_FOD.satHIGH_in,R_FOD.ATreq_in,R_FO.satLOW_in,R_FO.satHIGH_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 (195): * Single equations (assignments): 195 * 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.0004955/0.133, allocations: 307.6 kB / 0.4925 GB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001916/0.1332, allocations: 135.1 kB / 0.4926 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001907/0.1351, allocations: 1.058 MB / 0.4936 GB, free: 9.766 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.269e-05/0.1352, allocations: 11.94 kB / 0.4936 GB, free: 9.754 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.1352, allocations: 7.938 kB / 0.4937 GB, free: 9.746 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.262e-05/0.1352, allocations: 7.969 kB / 0.4937 GB, free: 9.738 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001385/0.1366, allocations: 1.115 MB / 0.4947 GB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.1366, allocations: 0 / 0.4947 GB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001729/0.1383, allocations: 307.6 kB / 0.495 GB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.955e-06/0.1384, allocations: 4 kB / 0.495 GB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.138e-05/0.1384, allocations: 32 kB / 0.4951 GB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.131e-05/0.1385, allocations: 15.91 kB / 0.4951 GB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1385, allocations: 0 / 0.4951 GB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002211/0.1407, allocations: 1.466 MB / 0.4965 GB, free: 6.742 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001987/0.1409, allocations: 223.8 kB / 0.4967 GB, free: 6.504 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001217/0.141, allocations: 28 kB / 0.4968 GB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005212/0.1416, allocations: 35.92 kB / 0.4968 GB, free: 6.441 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001484/0.1417, allocations: 72.89 kB / 0.4969 GB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.992e-05/0.1418, allocations: 31.98 kB / 0.4969 GB, free: 6.336 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007943/0.1426, allocations: 0.6362 MB / 0.4975 GB, free: 5.695 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1426, allocations: 0 / 0.4975 GB, free: 5.695 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007512/0.1433, allocations: 251.5 kB / 0.4978 GB, free: 5.449 MB / 382.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.00256/0.1459, allocations: 2.066 MB / 0.4998 GB, free: 3.359 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001692/0.1476, allocations: 0.9883 MB / 0.5007 GB, free: 2.375 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1476, allocations: 4 kB / 0.5007 GB, free: 2.371 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006706/0.1483, allocations: 449.5 kB / 0.5012 GB, free: 1.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007008/0.149, allocations: 154.2 kB / 0.5013 GB, free: 1.785 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1918/0.3409, allocations: 10.82 MB / 0.5119 GB, free: 39.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000699/0.3416, allocations: 1.193 MB / 0.5131 GB, free: 38.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007199/0.3423, allocations: 188.2 kB / 0.5132 GB, free: 38.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006619/0.343, allocations: 0.5865 MB / 0.5138 GB, free: 37.98 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.343, allocations: 0 / 0.5138 GB, free: 37.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04544/0.3884, allocations: 22.21 MB / 0.5355 GB, free: 24.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.489/9.878, allocations: 13.2 kB / 0.5355 GB, free: 24.23 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)