Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",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.001159/0.001159, allocations: 106.9 kB / 16.92 MB, free: 5.777 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.00112/0.00112, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.328/1.328, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1724/0.1724, allocations: 38.02 MB / 329.7 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 65.19 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09423/0.09557, allocations: 58.06 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.005841/0.1015, allocations: 4.335 MB / 461.3 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001598/0.1031, allocations: 0.9389 MB / 462.2 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002654/0.1034, allocations: 11.94 kB / 462.2 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002448/0.1036, allocations: 59.5 kB / 462.3 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007332/0.1044, allocations: 246.8 kB / 462.5 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002931/0.1047, allocations: 99.8 kB / 462.6 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005849/0.1053, allocations: 0.4944 MB / 463.1 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00026/0.1055, allocations: 147.9 kB / 463.3 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003816/0.1059, allocations: 211.1 kB / 463.5 MB, free: 1.395 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004611/0.1064, allocations: 275.1 kB / 463.8 MB, free: 1.125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.905e-05/0.1065, allocations: 24 kB / 463.8 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.854e-05/0.1066, allocations: 20 kB / 463.8 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001597/0.1068, allocations: 147.6 kB / 463.9 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002027/0.107, allocations: 175.1 kB / 464.1 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003636/0.1073, allocations: 366.6 kB / 464.5 MB, free: 416 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1073, allocations: 0 / 464.5 MB, free: 416 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.1074, allocations: 0 / 464.5 MB, free: 416 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.351e-05/0.1074, allocations: 0 / 464.5 MB, free: 416 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001183/0.1086, allocations: 0.6594 MB / 465.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.1086, allocations: 11.89 kB / 465.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.497e-05/0.1087, allocations: 70.72 kB / 465.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.187e-05/0.1088, allocations: 36.47 kB / 465.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004939/0.1093, allocations: 359.8 kB / 465.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.005e-05/0.1093, allocations: 20.5 kB / 465.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.047e-05/0.1094, allocations: 31.94 kB / 465.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004876/0.1098, allocations: 344.8 kB / 466 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.1099, allocations: 7.938 kB / 466 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.738e-05/0.11, allocations: 12 kB / 466 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001099/0.1101, allocations: 28.47 kB / 466 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004028/0.1105, allocations: 242 kB / 466.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001747/0.1122, allocations: 1.374 MB / 467.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003563/0.1126, allocations: 172.6 kB / 467.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001995/0.1128, allocations: 97.73 kB / 467.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.169e-05/0.1128, allocations: 7.938 kB / 467.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.1129, allocations: 38.55 kB / 468 MB, free: 12.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.393e-06/0.1129, allocations: 0 / 468 MB, free: 12.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001361/0.1143, allocations: 0.7599 MB / 468.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/0.1143, allocations: 77.11 kB / 468.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002796/0.1146, allocations: 304.3 kB / 469.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.1146, allocations: 29.7 kB / 469.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.1148, allocations: 215.6 kB / 469.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.158e-05/0.1148, allocations: 55.38 kB / 469.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.206e-05/0.1149, allocations: 53.61 kB / 469.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.115, allocations: 342.8 kB / 469.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.1151, allocations: 59.97 kB / 469.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.1153, allocations: 173.3 kB / 470 MB, free: 10.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002932/0.1156, allocations: 264.5 kB / 470.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1156, allocations: 0 / 470.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004973/0.1161, allocations: 317.2 kB / 470.6 MB, free: 9.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.1161, allocations: 8.062 kB / 470.6 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.1161, allocations: 4 kB / 470.6 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001984/0.1163, allocations: 52.81 kB / 470.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001686/0.1165, allocations: 47.92 kB / 470.7 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001365/0.1179, allocations: 1.605 MB / 472.3 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001504/0.1181, allocations: 4 kB / 472.3 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.97e-05/0.1181, allocations: 20.14 kB / 472.3 MB, free: 7.957 MB / 350.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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001602/0.1183, allocations: 173.7 kB / 472.5 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.856e-05/0.1183, allocations: 31.62 kB / 472.5 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003938/0.1187, allocations: 236.2 kB / 472.7 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.1187, allocations: 4 kB / 472.7 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1187, allocations: 4 kB / 472.7 MB, free: 7.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.1188, allocations: 3.984 kB / 472.7 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008321/0.1196, allocations: 0.6444 MB / 473.4 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1196, allocations: 0 / 473.4 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001071/0.1197, allocations: 23.92 kB / 473.4 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001837/0.1199, allocations: 56.8 kB / 473.5 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.1199, allocations: 4 kB / 473.5 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001251/0.1212, allocations: 1.617 MB / 475.1 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.1212, allocations: 0 / 475.1 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004912/0.1217, allocations: 408.4 kB / 475.5 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.891e-05/0.1218, allocations: 104.8 kB / 475.6 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4e-05/0.1218, allocations: 15.98 kB / 475.6 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001371/0.122, allocations: 8 kB / 475.6 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.439e-05/0.122, allocations: 11.92 kB / 475.6 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.27e-05/0.122, allocations: 7.984 kB / 475.6 MB, free: 4.355 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001855/0.1222, allocations: 207.1 kB / 475.8 MB, free: 4.156 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1222, allocations: 4 kB / 475.8 MB, free: 4.152 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003683/0.1226, allocations: 68 kB / 475.9 MB, free: 4.086 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007591/0.1234, allocations: 0.9316 MB / 476.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000556/0.1239, allocations: 325.8 kB / 477.2 MB, free: 2.793 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.124, allocations: 0 / 477.2 MB, free: 2.793 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003397/0.1243, allocations: 202.5 kB / 477.4 MB, free: 2.582 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004768/0.1248, allocations: 72.36 kB / 477.4 MB, free: 2.516 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003347/0.1282, allocations: 3.046 MB / 480.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003564/0.1285, allocations: 0.8104 MB / 481.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001649/0.1287, allocations: 46.94 kB / 481.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001244/0.1288, allocations: 95.41 kB / 481.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1288, allocations: 0 / 481.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02697/0.1558, allocations: 5.974 MB / 487.4 MB, free: 8.438 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.927/9.083, allocations: 8.812 kB / 487.4 MB, free: 8.434 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00027027 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1)