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.001227/0.001228, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.01079/0.01079, allocations: 170.8 kB / 16.26 MB, free: 6.613 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.773/1.773, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05789/0.05789, allocations: 10.76 MB / 281.5 MB, free: 10.45 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.0006714/0.0006714, allocations: 19.12 kB / 342.3 MB, free: 23.38 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1713/0.172, allocations: 50.01 MB / 392.3 MB, free: 5.301 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.ProcessControl): time 0.006469/0.1785, allocations: 3.716 MB / 396.1 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004391/0.183, allocations: 1.665 MB / 397.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000728/0.1837, allocations: 63.38 kB / 397.8 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003652/0.1841, allocations: 102.8 kB / 397.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006319/0.1848, allocations: 119 kB / 398 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002094/0.1869, allocations: 0.7842 MB / 398.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002236/0.1891, allocations: 1.384 MB / 400.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000859/0.19, allocations: 404.6 kB / 400.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000947/0.191, allocations: 0.5128 MB / 401.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007294/0.1917, allocations: 492.7 kB / 401.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001311/0.1918, allocations: 44 kB / 401.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001038/0.192, allocations: 40 kB / 401.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000343/0.1923, allocations: 218.8 kB / 401.9 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006337/0.193, allocations: 0.5291 MB / 402.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001748/0.1947, allocations: 1.144 MB / 403.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.033e-05/0.1948, allocations: 3.938 kB / 403.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.25e-06/0.1948, allocations: 0 / 403.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.914e-05/0.1948, allocations: 0 / 403.5 MB, free: 10.03 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.003879/0.1987, allocations: 1.444 MB / 405 MB, free: 8.531 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.38e-05/0.1988, allocations: 12.03 kB / 405 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003038/0.1991, allocations: 152.3 kB / 405.1 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000348/0.1995, allocations: 170.9 kB / 405.3 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00202/0.2015, allocations: 0.8854 MB / 406.2 MB, free: 7.254 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003836/0.2019, allocations: 300.2 kB / 406.5 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002555/0.2022, allocations: 128.2 kB / 406.6 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002551/0.2048, allocations: 1.121 MB / 407.7 MB, free: 5.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.214e-05/0.2048, allocations: 7.938 kB / 407.7 MB, free: 5.562 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.629e-05/0.2049, allocations: 44 kB / 407.8 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.009e-05/0.2049, allocations: 24 kB / 407.8 MB, free: 5.496 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001498/0.2064, allocations: 0.7221 MB / 408.5 MB, free: 4.773 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007097/0.2136, allocations: 3.879 MB / 412.4 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00172/0.2153, allocations: 0.8445 MB / 413.2 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007331/0.216, allocations: 425.3 kB / 413.7 MB, free: 15.51 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.92e-05/0.2161, allocations: 17.06 kB / 413.7 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.105e-05/0.2162, allocations: 47.55 kB / 413.7 MB, free: 15.44 MB / 318.1 MB Notification: Performance of pre-optimization done (n=99): time 4.538e-06/0.2162, allocations: 0 / 413.7 MB, free: 15.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=99): time 0.002468/0.2187, allocations: 1.096 MB / 414.8 MB, free: 14.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003236/0.219, allocations: 376.8 kB / 415.2 MB, free: 13.88 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001255/0.2203, allocations: 0.9109 MB / 416.1 MB, free: 12.96 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.305e-05/0.2204, allocations: 49.7 kB / 416.1 MB, free: 12.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000565/0.221, allocations: 0.5937 MB / 416.7 MB, free: 12.3 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003278/0.2213, allocations: 378.5 kB / 417.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/0.2215, allocations: 141.6 kB / 417.3 MB, free: 11.78 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002617/0.2218, allocations: 357.9 kB / 417.6 MB, free: 11.43 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007009/0.2225, allocations: 359.8 kB / 418 MB, free: 11.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001209/0.2237, allocations: 0.7564 MB / 418.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002029/0.2257, allocations: 1.076 MB / 419.8 MB, free: 8.941 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-05/0.2258, allocations: 4 kB / 419.8 MB, free: 8.938 MB / 318.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.002328/0.2281, allocations: 1.277 MB / 421.1 MB, free: 7.652 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.169e-05/0.2282, allocations: 8 kB / 421.1 MB, free: 7.645 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.815e-05/0.2282, allocations: 8 kB / 421.1 MB, free: 7.637 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.297e-05/0.2282, allocations: 24.06 kB / 421.1 MB, free: 7.613 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00144/0.2297, allocations: 343.5 kB / 421.4 MB, free: 7.277 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.742e-05/0.2297, allocations: 19.94 kB / 421.5 MB, free: 7.258 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000671/0.2304, allocations: 134.6 kB / 421.6 MB, free: 7.125 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.278e-05/0.2305, allocations: 63.98 kB / 421.7 MB, free: 7.062 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.0004747/0.231, allocations: 281.9 kB / 421.9 MB, free: 6.777 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001694/0.2311, allocations: 122.4 kB / 422 MB, free: 6.656 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0021/0.2333, allocations: 1.061 MB / 423.1 MB, free: 5.582 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.357e-05/0.2333, allocations: 12 kB / 423.1 MB, free: 5.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.2333, allocations: 0 / 423.1 MB, free: 5.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.531e-05/0.2333, allocations: 7.969 kB / 423.1 MB, free: 5.562 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001551/0.2349, allocations: 1.07 MB / 424.2 MB, free: 4.445 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.2349, allocations: 0 / 424.2 MB, free: 4.445 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001717/0.2366, allocations: 315.6 kB / 424.5 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.03e-05/0.2366, allocations: 7.938 kB / 424.5 MB, free: 4.129 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.567e-05/0.2367, allocations: 31.98 kB / 424.5 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.354e-06/0.2367, allocations: 4 kB / 424.6 MB, free: 4.094 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.2367, allocations: 0 / 424.6 MB, free: 4.094 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002531/0.2393, allocations: 1.459 MB / 426 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002335/0.2395, allocations: 203.3 kB / 426.2 MB, free: 2.402 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001653/0.2397, allocations: 31.92 kB / 426.2 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005344/0.2402, allocations: 31.98 kB / 426.3 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001975/0.2405, allocations: 76.89 kB / 426.3 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.021e-05/0.2405, allocations: 35.98 kB / 426.4 MB, free: 2.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009729/0.2415, allocations: 0.5865 MB / 427 MB, free: 1.637 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2415, allocations: 0 / 427 MB, free: 1.637 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009135/0.2425, allocations: 235.3 kB / 427.2 MB, free: 1.406 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.286/0.5285, allocations: 2.039 MB / 429.2 MB, free: 40.65 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002657/0.5312, allocations: 0.9464 MB / 430.2 MB, free: 40.64 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/0.5312, allocations: 1.094 kB / 430.2 MB, free: 40.64 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009516/0.5322, allocations: 460 kB / 430.6 MB, free: 40.61 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001181/0.5334, allocations: 142.7 kB / 430.8 MB, free: 40.61 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02258/0.556, allocations: 11.52 MB / 442.3 MB, free: 34.45 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001356/0.5574, allocations: 1.157 MB / 443.4 MB, free: 33.72 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.00113/0.5586, allocations: 181.2 kB / 443.6 MB, free: 33.68 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008568/0.5594, allocations: 0.5394 MB / 444.2 MB, free: 33.27 MB / 318.1 MB Notification: Performance of SimCode: time 1.513e-06/0.5595, allocations: 0 / 444.2 MB, free: 33.27 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04306/0.6025, allocations: 20.12 MB / 464.3 MB, free: 17.33 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002238/0.6028, allocations: 234.1 kB / 464.5 MB, free: 17.07 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.008/3.611, allocations: 0 / 464.5 MB, free: 17.07 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)