Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.ImpedanceTest.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.Generic.Test.ImpedanceTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_ImpedanceTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.ImpedanceTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_ImpedanceTest",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.001274/0.001274, allocations: 106.3 kB / 16.92 MB, free: 6.332 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.00121/0.00121, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.361/1.361, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1836/0.1836, allocations: 38.02 MB / 329.7 MB, free: 8.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 65.2 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09396/0.09523, allocations: 58.06 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.004686/0.09995, allocations: 3.437 MB / 460.4 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001966/0.1019, allocations: 1.442 MB / 461.8 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.1021, allocations: 7.938 kB / 461.8 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007874/0.1029, allocations: 250.9 kB / 462.1 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006301/0.1035, allocations: 286.9 kB / 462.4 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000318/0.1038, allocations: 107.7 kB / 462.5 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004458/0.1043, allocations: 339.1 kB / 462.8 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003383/0.1046, allocations: 133.9 kB / 462.9 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003222/0.105, allocations: 143.4 kB / 463.1 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000319/0.1053, allocations: 155.4 kB / 463.2 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.072e-05/0.1054, allocations: 12 kB / 463.2 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006015/0.106, allocations: 311.2 kB / 463.5 MB, free: 1.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001443/0.1061, allocations: 95.77 kB / 463.6 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001475/0.1063, allocations: 103.5 kB / 463.7 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005432/0.1068, allocations: 343 kB / 464.1 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1068, allocations: 0 / 464.1 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1069, allocations: 0 / 464.1 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.912e-06/0.1069, allocations: 4 kB / 464.1 MB, free: 0.7969 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006726/0.1075, allocations: 0.5065 MB / 464.6 MB, free: 248 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.1076, allocations: 11.89 kB / 464.6 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.349e-05/0.1077, allocations: 58.72 kB / 464.7 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009088/0.1086, allocations: 96.48 kB / 464.8 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004055/0.109, allocations: 254.7 kB / 465 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.767e-05/0.109, allocations: 16.33 kB / 465 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.97e-05/0.1091, allocations: 23.94 kB / 465 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005826/0.1097, allocations: 314.3 kB / 465.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.521e-05/0.1097, allocations: 7.984 kB / 465.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.867e-05/0.1098, allocations: 4 kB / 465.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.347e-05/0.1098, allocations: 16 kB / 465.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000498/0.1103, allocations: 283.8 kB / 465.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001804/0.1121, allocations: 1.308 MB / 467 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005741/0.1127, allocations: 201.2 kB / 467.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.418e-05/0.1128, allocations: 65.64 kB / 467.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.367e-05/0.1129, allocations: 0 / 467.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.742e-05/0.1129, allocations: 42.77 kB / 467.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 2.925e-06/0.1129, allocations: 0 / 467.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009369/0.1139, allocations: 430.1 kB / 467.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/0.1139, allocations: 85.03 kB / 467.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001814/0.1141, allocations: 194.4 kB / 468 MB, free: 12.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.856e-05/0.1141, allocations: 29.64 kB / 468 MB, free: 12.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.1142, allocations: 167.8 kB / 468.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.131e-05/0.1143, allocations: 51.3 kB / 468.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.518e-05/0.1144, allocations: 45.61 kB / 468.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.1145, allocations: 334.9 kB / 468.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.713e-05/0.1146, allocations: 47.97 kB / 468.6 MB, free: 11.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000143/0.1147, allocations: 153.7 kB / 468.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002593/0.115, allocations: 228.6 kB / 469 MB, free: 11.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.115, allocations: 4 kB / 469 MB, free: 11.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004571/0.1155, allocations: 261.9 kB / 469.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.1155, allocations: 7.984 kB / 469.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.1155, allocations: 4.438 kB / 469.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00024/0.1158, allocations: 40.83 kB / 469.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001544/0.1159, allocations: 47.92 kB / 469.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001109/0.117, allocations: 1.437 MB / 470.8 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001201/0.1172, allocations: 12.05 kB / 470.8 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.996e-05/0.1172, allocations: 12 kB / 470.8 MB, free: 9.484 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 (24): * Single equations (assignments): 23 * 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.0001365/0.1173, allocations: 157.8 kB / 471 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.525e-05/0.1174, allocations: 23.73 kB / 471 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003618/0.1178, allocations: 187.9 kB / 471.2 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.1178, allocations: 7.984 kB / 471.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-06/0.1178, allocations: 3.938 kB / 471.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.1178, allocations: 0 / 471.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000805/0.1186, allocations: 0.5601 MB / 471.7 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.1186, allocations: 0 / 471.7 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.335e-05/0.1187, allocations: 23.98 kB / 471.8 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001446/0.1189, allocations: 36.86 kB / 471.8 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.1189, allocations: 4 kB / 471.8 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009856/0.1199, allocations: 1.418 MB / 473.2 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.1199, allocations: 3.938 kB / 473.2 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00036/0.1203, allocations: 299.6 kB / 473.5 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.297e-05/0.1203, allocations: 88.92 kB / 473.6 MB, free: 6.414 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.512e-05/0.1204, allocations: 8 kB / 473.6 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/0.1205, allocations: 4 kB / 473.6 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.303e-05/0.1205, allocations: 23.8 kB / 473.6 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.579e-05/0.1205, allocations: 8 kB / 473.6 MB, free: 6.371 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001065/0.1207, allocations: 148.3 kB / 473.8 MB, free: 6.227 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1207, allocations: 0 / 473.8 MB, free: 6.227 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003547/0.121, allocations: 52 kB / 473.8 MB, free: 6.176 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (14): * Single equations (assignments): 12 * 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.000584/0.1216, allocations: 0.8265 MB / 474.7 MB, free: 5.305 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004594/0.1221, allocations: 283.1 kB / 474.9 MB, free: 5.016 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1221, allocations: 0 / 474.9 MB, free: 5.016 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000224/0.1223, allocations: 178.5 kB / 475.1 MB, free: 4.828 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003743/0.1227, allocations: 45.58 kB / 475.2 MB, free: 4.793 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002493/0.1252, allocations: 2.361 MB / 477.5 MB, free: 2.234 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.1255, allocations: 0.7554 MB / 478.3 MB, free: 1.453 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001255/0.1257, allocations: 45.52 kB / 478.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.553e-05/0.1258, allocations: 59.41 kB / 478.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1258, allocations: 0 / 478.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02225/0.148, allocations: 3.791 MB / 482.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.96/9.109, allocations: 0 / 482.2 MB, free: 13.64 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.ImpedanceTest.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Test.ImpedanceTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_Generic_Test_ImpedanceTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe 2>&1)