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.001184/0.001184, allocations: 99 kB / 15.05 MB, free: 1.105 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.001533/0.001533, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.707/1.707, allocations: 205.4 MB / 222.1 MB, free: 5.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05432/0.05432, allocations: 10.73 MB / 281.1 MB, free: 10.58 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.0005086/0.0005088, allocations: 12 kB / 341.7 MB, free: 23.8 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1025, allocations: 50.01 MB / 391.7 MB, free: 5.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.ProcessControl): time 0.004371/0.107, allocations: 3.517 MB / 395.2 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003679/0.1107, allocations: 1.654 MB / 396.9 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000514/0.1112, allocations: 55.44 kB / 396.9 MB, free: 488 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001342/0.1114, allocations: 75.06 kB / 397 MB, free: 412 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005072/0.1119, allocations: 151.2 kB / 397.1 MB, free: 260 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001448/0.1133, allocations: 0.6474 MB / 397.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001122/0.1145, allocations: 0.8297 MB / 398.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006124/0.1151, allocations: 327.3 kB / 398.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007602/0.1159, allocations: 0.5132 MB / 399.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005675/0.1164, allocations: 465.2 kB / 399.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001015/0.1165, allocations: 44 kB / 399.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000104/0.1167, allocations: 44 kB / 400 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002003/0.1169, allocations: 211 kB / 400.2 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001805/0.1171, allocations: 217 kB / 400.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008353/0.1179, allocations: 0.8654 MB / 401.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1179, allocations: 3.938 kB / 401.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1179, allocations: 4 kB / 401.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.349e-05/0.1179, allocations: 3.938 kB / 401.3 MB, free: 12.07 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.002643/0.1206, allocations: 1.456 MB / 402.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.1206, allocations: 8.031 kB / 402.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001941/0.1208, allocations: 152.1 kB / 402.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002232/0.1211, allocations: 170 kB / 403.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001343/0.1224, allocations: 0.8382 MB / 403.9 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002405/0.1227, allocations: 307.6 kB / 404.2 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000177/0.1229, allocations: 127.8 kB / 404.3 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/0.1246, allocations: 1.101 MB / 405.4 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/0.1246, allocations: 3.938 kB / 405.4 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.906e-05/0.1247, allocations: 44 kB / 405.5 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.375e-05/0.1247, allocations: 24 kB / 405.5 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001253/0.126, allocations: 0.7259 MB / 406.2 MB, free: 6.867 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00517/0.1312, allocations: 3.883 MB / 410.1 MB, free: 2.871 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00157/0.1328, allocations: 0.8409 MB / 410.9 MB, free: 2.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.775e-05/0.1329, allocations: 20.98 kB / 411 MB, free: 2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.729e-05/0.1329, allocations: 43.56 kB / 411 MB, free: 1.949 MB / 302.1 MB Notification: Performance of pre-optimization done (n=99): time 3.527e-06/0.1329, allocations: 4 kB / 411 MB, free: 1.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=99): time 0.001869/0.1348, allocations: 1.088 MB / 412.1 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002044/0.135, allocations: 380.8 kB / 412.5 MB, free: 408 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001039/0.136, allocations: 0.9026 MB / 413.4 MB, free: 15.48 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.857e-05/0.1361, allocations: 45.7 kB / 413.4 MB, free: 15.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000451/0.1366, allocations: 0.59 MB / 414 MB, free: 14.83 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002617/0.1369, allocations: 386.4 kB / 414.4 MB, free: 14.45 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.211e-05/0.1369, allocations: 32 kB / 414.4 MB, free: 14.41 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1371, allocations: 357.9 kB / 414.8 MB, free: 14.06 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005984/0.1377, allocations: 347.8 kB / 415.1 MB, free: 13.72 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008891/0.1386, allocations: 0.7486 MB / 415.9 MB, free: 12.8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006983/0.1393, allocations: 458.2 kB / 416.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.1393, allocations: 0 / 416.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.001794/0.1411, allocations: 1.261 MB / 417.6 MB, free: 11.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.877e-05/0.1412, allocations: 14.64 kB / 417.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.1412, allocations: 8 kB / 417.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.01e-05/0.1412, allocations: 24.03 kB / 417.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/0.1426, allocations: 343.5 kB / 417.9 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.229e-05/0.1426, allocations: 19.94 kB / 418 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006274/0.1433, allocations: 138.7 kB / 418.1 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.773e-05/0.1433, allocations: 56 kB / 418.2 MB, free: 10.5 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004113/0.1438, allocations: 274.1 kB / 418.4 MB, free: 10.22 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/0.1439, allocations: 122.4 kB / 418.5 MB, free: 10.1 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001746/0.1457, allocations: 1.068 MB / 419.6 MB, free: 9.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.1457, allocations: 15.94 kB / 419.6 MB, free: 9.004 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.1457, allocations: 3.938 kB / 419.6 MB, free: 9 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.417e-05/0.1457, allocations: 3.984 kB / 419.6 MB, free: 8.996 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001262/0.147, allocations: 1.067 MB / 420.7 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.147, allocations: 0 / 420.7 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001678/0.1487, allocations: 311.6 kB / 421 MB, free: 7.578 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.728e-06/0.1487, allocations: 4 kB / 421 MB, free: 7.574 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.355e-05/0.1488, allocations: 31.98 kB / 421 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.483e-06/0.1488, allocations: 4 kB / 421 MB, free: 7.539 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1488, allocations: 0 / 421 MB, free: 7.539 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002025/0.1509, allocations: 1.455 MB / 422.5 MB, free: 6.062 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001911/0.1511, allocations: 211.2 kB / 422.7 MB, free: 5.836 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001197/0.1512, allocations: 24 kB / 422.7 MB, free: 5.812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004985/0.1517, allocations: 35.98 kB / 422.8 MB, free: 5.777 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/0.1518, allocations: 68.89 kB / 422.8 MB, free: 5.711 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.334e-05/0.1519, allocations: 28 kB / 422.9 MB, free: 5.684 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006644/0.1526, allocations: 0.5787 MB / 423.4 MB, free: 5.098 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1526, allocations: 0 / 423.4 MB, free: 5.098 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007105/0.1533, allocations: 235.4 kB / 423.7 MB, free: 4.867 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 (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.002443/0.1557, allocations: 2.049 MB / 425.7 MB, free: 2.785 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001519/0.1573, allocations: 0.9405 MB / 426.7 MB, free: 1.848 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.1573, allocations: 0 / 426.7 MB, free: 1.848 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006177/0.1579, allocations: 451 kB / 427.1 MB, free: 1.41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005477/0.1585, allocations: 116.4 kB / 427.2 MB, free: 1.297 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2349/0.3934, allocations: 14.31 MB / 441.5 MB, free: 32.33 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000826/0.3943, allocations: 1.188 MB / 442.7 MB, free: 31.61 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008871/0.3952, allocations: 175.2 kB / 442.9 MB, free: 31.56 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008532/0.396, allocations: 0.5356 MB / 443.4 MB, free: 31.15 MB / 318.1 MB Notification: Performance of SimCode: time 1.994e-06/0.3961, allocations: 0 / 443.4 MB, free: 31.15 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04051/0.4366, allocations: 19.56 MB / 463 MB, free: 19.01 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001648/0.4368, allocations: 215.8 kB / 463.2 MB, free: 18.77 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.506/2.943, allocations: 3.594 kB / 463.2 MB, free: 18.77 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/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) Environment - environmentSimulation: