Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",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.001059/0.001059, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.001137/0.001137, allocations: 200 kB / 18.01 MB, free: 5.055 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.323/1.323, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1744/0.1744, allocations: 37.99 MB / 309.2 MB, free: 5.941 MB / 254.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.001439/0.001439, allocations: 72.36 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09079/0.09224, allocations: 55.24 MB / 486.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.005439/0.09771, allocations: 4.206 MB / 490.8 MB, free: 4.602 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001596/0.09933, allocations: 0.9752 MB / 491.8 MB, free: 3.621 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002454/0.09962, allocations: 7.938 kB / 491.8 MB, free: 3.613 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002123/0.09984, allocations: 51.5 kB / 491.8 MB, free: 3.562 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005837/0.1004, allocations: 202.9 kB / 492 MB, free: 3.363 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002282/0.1007, allocations: 103.8 kB / 492.1 MB, free: 3.262 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005344/0.1012, allocations: 474.3 kB / 492.6 MB, free: 2.797 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002486/0.1015, allocations: 163.5 kB / 492.8 MB, free: 2.641 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003294/0.1018, allocations: 211.1 kB / 493 MB, free: 2.434 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004208/0.1022, allocations: 259.1 kB / 493.2 MB, free: 2.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.238e-05/0.1023, allocations: 24 kB / 493.3 MB, free: 2.156 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.477e-05/0.1024, allocations: 31.94 kB / 493.3 MB, free: 2.125 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001295/0.1025, allocations: 123.6 kB / 493.4 MB, free: 2.004 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001764/0.1027, allocations: 175.1 kB / 493.6 MB, free: 1.832 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003624/0.1031, allocations: 378.7 kB / 493.9 MB, free: 1.461 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1031, allocations: 4 kB / 493.9 MB, free: 1.457 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1031, allocations: 0 / 493.9 MB, free: 1.457 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.257e-05/0.1031, allocations: 0 / 493.9 MB, free: 1.457 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001224/0.1043, allocations: 0.6945 MB / 494.6 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.1044, allocations: 11.89 kB / 494.7 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.134e-05/0.1045, allocations: 66.72 kB / 494.7 MB, free: 0.625 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.161e-05/0.1045, allocations: 40.41 kB / 494.8 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005956/0.1051, allocations: 402.9 kB / 495.2 MB, free: 160 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.1052, allocations: 16.56 kB / 495.2 MB, free: 144 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.726e-05/0.1052, allocations: 32 kB / 495.2 MB, free: 112 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004907/0.1057, allocations: 360.7 kB / 495.6 MB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.1057, allocations: 0 / 495.6 MB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.335e-05/0.1058, allocations: 12 kB / 495.6 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.1058, allocations: 8 kB / 495.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003835/0.1062, allocations: 261.9 kB / 495.8 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001674/0.1079, allocations: 1.434 MB / 497.3 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002542/0.1081, allocations: 161 kB / 497.4 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001118/0.1082, allocations: 77.73 kB / 497.5 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.1083, allocations: 7.984 kB / 497.5 MB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.735e-05/0.1083, allocations: 38.5 kB / 497.5 MB, free: 13.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.302e-06/0.1083, allocations: 0 / 497.5 MB, free: 13.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001056/0.1094, allocations: 0.6807 MB / 498.2 MB, free: 12.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.1094, allocations: 77.11 kB / 498.3 MB, free: 12.78 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002763/0.1097, allocations: 296.5 kB / 498.6 MB, free: 12.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.1097, allocations: 33.7 kB / 498.6 MB, free: 12.44 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000131/0.1099, allocations: 215.5 kB / 498.8 MB, free: 12.22 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.671e-05/0.1099, allocations: 59.19 kB / 498.9 MB, free: 12.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.944e-05/0.11, allocations: 57.72 kB / 498.9 MB, free: 12.1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.1101, allocations: 338.8 kB / 499.3 MB, free: 11.76 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.1103, allocations: 67.95 kB / 499.3 MB, free: 11.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.1104, allocations: 168.8 kB / 499.5 MB, free: 11.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002837/0.1107, allocations: 252.6 kB / 499.8 MB, free: 11.19 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.1107, allocations: 4 kB / 499.8 MB, free: 11.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003866/0.1111, allocations: 284.9 kB / 0.4883 GB, free: 10.9 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.1111, allocations: 8 kB / 0.4883 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.1111, allocations: 4.438 kB / 0.4883 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.1112, allocations: 8 kB / 0.4883 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002528/0.1114, allocations: 63.83 kB / 0.4884 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.1114, allocations: 11.88 kB / 0.4884 GB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001596/0.1116, allocations: 12 kB / 0.4884 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.921e-05/0.1116, allocations: 15.98 kB / 0.4884 GB, free: 10.78 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.0001479/0.1118, allocations: 161.8 kB / 0.4886 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.488e-05/0.1119, allocations: 35.56 kB / 0.4886 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003518/0.1122, allocations: 235.4 kB / 0.4888 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.1122, allocations: 4 kB / 0.4888 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.1122, allocations: 4 kB / 0.4889 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.1122, allocations: 3.984 kB / 0.4889 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007449/0.113, allocations: 0.62 MB / 0.4895 GB, free: 9.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.113, allocations: 0 / 0.4895 GB, free: 9.648 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001981/0.1132, allocations: 43.92 kB / 0.4895 GB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.1132, allocations: 0 / 0.4895 GB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.1132, allocations: 0 / 0.4895 GB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.1133, allocations: 4 kB / 0.4895 GB, free: 9.602 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.1133, allocations: 8.016 kB / 0.4895 GB, free: 9.594 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004917/0.1138, allocations: 428.7 kB / 0.4899 GB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.232e-05/0.1138, allocations: 104.7 kB / 0.49 GB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.191e-05/0.1139, allocations: 8 kB / 0.49 GB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001704/0.1141, allocations: 11.98 kB / 0.49 GB, free: 9.012 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.193e-05/0.1141, allocations: 15.98 kB / 0.4901 GB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-05/0.1141, allocations: 7.938 kB / 0.4901 GB, free: 8.988 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001927/0.1143, allocations: 211.1 kB / 0.4903 GB, free: 8.785 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1143, allocations: 0 / 0.4903 GB, free: 8.785 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003509/0.1147, allocations: 60 kB / 0.4903 GB, free: 8.727 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007158/0.1154, allocations: 0.9481 MB / 0.4913 GB, free: 7.746 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003117/0.1157, allocations: 195.9 kB / 0.4914 GB, free: 7.555 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1157, allocations: 0.9375 kB / 0.4914 GB, free: 7.555 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001243/0.1159, allocations: 83.89 kB / 0.4915 GB, free: 7.473 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005047/0.1164, allocations: 81.34 kB / 0.4916 GB, free: 7.391 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003034/0.1194, allocations: 2.902 MB / 0.4944 GB, free: 4.312 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003435/0.1198, allocations: 0.8026 MB / 0.4952 GB, free: 3.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001646/0.12, allocations: 54.95 kB / 0.4953 GB, free: 3.426 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001562/0.1201, allocations: 111.3 kB / 0.4954 GB, free: 3.316 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1201, allocations: 0 / 0.4954 GB, free: 3.316 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0231/0.1432, allocations: 6.091 MB / 0.5013 GB, free: 13.17 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.643/7.786, allocations: 11.98 kB / 0.5013 GB, free: 13.16 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1)