Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",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.001202/0.001202, allocations: 106.7 kB / 16.62 MB, free: 6.809 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.001245/0.001245, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.409/1.409, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1743/0.1743, allocations: 38.03 MB / 329.4 MB, free: 8.992 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 56.89 kB / 398.4 MB, free: 34.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09282/0.094, allocations: 58.07 MB / 456.5 MB, free: 8.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.004948/0.09898, allocations: 4.511 MB / 461 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001573/0.1006, allocations: 0.9778 MB / 461.9 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001787/0.1008, allocations: 19.88 kB / 462 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001688/0.1009, allocations: 35.7 kB / 462 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003865/0.1014, allocations: 147.3 kB / 462.1 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001916/0.1016, allocations: 79.84 kB / 462.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003913/0.102, allocations: 398.6 kB / 462.6 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002281/0.1022, allocations: 110.2 kB / 462.7 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002366/0.1024, allocations: 171.2 kB / 462.9 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002982/0.1027, allocations: 199.3 kB / 463.1 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.526e-05/0.1028, allocations: 20 kB / 463.1 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.371e-05/0.1028, allocations: 24 kB / 463.1 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.465e-05/0.1029, allocations: 83.72 kB / 463.2 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000131/0.1031, allocations: 143.2 kB / 463.3 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002431/0.1033, allocations: 286.9 kB / 463.6 MB, free: 1.117 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1033, allocations: 0 / 463.6 MB, free: 1.117 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1033, allocations: 4 kB / 463.6 MB, free: 1.113 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.309e-05/0.1034, allocations: 0 / 463.6 MB, free: 1.113 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008518/0.1042, allocations: 0.5854 MB / 464.2 MB, free: 492 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.1043, allocations: 15.89 kB / 464.2 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.548e-05/0.1043, allocations: 58.72 kB / 464.3 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.294e-05/0.1044, allocations: 28.56 kB / 464.3 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004108/0.1048, allocations: 326.9 kB / 464.6 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/0.1048, allocations: 16.86 kB / 464.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.105, allocations: 35.94 kB / 464.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003742/0.1053, allocations: 290 kB / 465 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.1054, allocations: 4 kB / 465 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.052e-05/0.1054, allocations: 8 kB / 465 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.505e-06/0.1054, allocations: 4 kB / 465 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002662/0.1057, allocations: 191.7 kB / 465.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001301/0.107, allocations: 1.28 MB / 466.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002403/0.1072, allocations: 123.8 kB / 466.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.558e-05/0.1073, allocations: 46.62 kB / 466.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.579e-05/0.1073, allocations: 3.984 kB / 466.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.549e-05/0.1074, allocations: 38.5 kB / 466.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.1074, allocations: 4 kB / 466.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007908/0.1082, allocations: 0.5273 MB / 467.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.418e-05/0.1082, allocations: 102.8 kB / 467.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001901/0.1084, allocations: 246.7 kB / 467.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.1084, allocations: 25.7 kB / 467.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.841e-05/0.1085, allocations: 199.8 kB / 467.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.582e-05/0.1086, allocations: 47.53 kB / 467.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.474e-05/0.1086, allocations: 41.64 kB / 467.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.288e-05/0.1087, allocations: 338.8 kB / 468.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.756e-05/0.1088, allocations: 39.92 kB / 468.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001103/0.1089, allocations: 134.7 kB / 468.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001927/0.1091, allocations: 191.8 kB / 468.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.1091, allocations: 0 / 468.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003514/0.1095, allocations: 229.8 kB / 468.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.1095, allocations: 8.406 kB / 468.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.1095, allocations: 4 kB / 468.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001051/0.1096, allocations: 36.78 kB / 468.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003112/0.11, allocations: 67.88 kB / 468.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.11, allocations: 4 kB / 468.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001152/0.1101, allocations: 8 kB / 468.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.492e-05/0.1101, allocations: 8 kB / 468.9 MB, free: 11.37 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001208/0.1102, allocations: 154.6 kB / 469 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.311e-05/0.1103, allocations: 23.72 kB / 469.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002276/0.1105, allocations: 147.2 kB / 469.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.1105, allocations: 11.92 kB / 469.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.1105, allocations: 0 / 469.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.1106, allocations: 0 / 469.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003065/0.1109, allocations: 289.4 kB / 469.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.1109, allocations: 0 / 469.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001553/0.111, allocations: 27.98 kB / 469.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.111, allocations: 4 kB / 469.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.1111, allocations: 7.984 kB / 469.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.1111, allocations: 11.88 kB / 469.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1111, allocations: 0 / 469.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003096/0.1114, allocations: 353.4 kB / 469.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.084e-05/0.1115, allocations: 92.86 kB / 470 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.917e-05/0.1115, allocations: 12.06 kB / 470 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001458/0.1116, allocations: 3.938 kB / 470 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.225e-05/0.1117, allocations: 15.98 kB / 470 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-06/0.1117, allocations: 0 / 470 MB, free: 10.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001318/0.1118, allocations: 177.9 kB / 470.2 MB, free: 9.969 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1118, allocations: 0 / 470.2 MB, free: 9.969 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003372/0.1122, allocations: 48 kB / 470.2 MB, free: 9.922 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * 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 (14): * Single equations (assignments): 13 * 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.0005181/0.1127, allocations: 0.8997 MB / 471.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002788/0.113, allocations: 210.6 kB / 471.3 MB, free: 8.766 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.113, allocations: 4.188 kB / 471.3 MB, free: 8.762 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.753e-05/0.1131, allocations: 56.08 kB / 471.4 MB, free: 8.707 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004659/0.1136, allocations: 59.84 kB / 471.5 MB, free: 8.652 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002615/0.1162, allocations: 2.722 MB / 474.2 MB, free: 5.742 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002898/0.1165, allocations: 0.7714 MB / 474.9 MB, free: 4.945 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001089/0.1166, allocations: 30.27 kB / 475 MB, free: 4.918 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.1167, allocations: 91.41 kB / 475.1 MB, free: 4.828 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1167, allocations: 3.938 kB / 475.1 MB, free: 4.824 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.579/1.696, allocations: 4.685 MB / 479.8 MB, free: 296 kB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002635/1.696, allocations: 231.8 kB / 480 MB, free: 20 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.286/3.982, allocations: 0 / 480 MB, free: 20 kB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1)