Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.ImpedanceOneTerm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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.001194/0.001199, allocations: 106.9 kB / 16.92 MB, free: 5.797 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.001383/0.001384, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.38/1.38, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1767/0.1767, allocations: 38.03 MB / 329.7 MB, free: 8.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 65.38 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09294/0.09441, allocations: 58.06 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.005771/0.1002, allocations: 4.068 MB / 461 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001479/0.1017, allocations: 0.9077 MB / 461.9 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000211/0.102, allocations: 7.938 kB / 461.9 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001888/0.1022, allocations: 51.5 kB / 462 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005869/0.1028, allocations: 186.9 kB / 462.2 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002329/0.103, allocations: 87.88 kB / 462.3 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004993/0.1035, allocations: 398.5 kB / 462.7 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002502/0.1038, allocations: 126.2 kB / 462.8 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003523/0.1042, allocations: 171.3 kB / 462.9 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004117/0.1046, allocations: 179.3 kB / 463.1 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.853e-05/0.1047, allocations: 20 kB / 463.1 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.906e-05/0.1048, allocations: 20 kB / 463.2 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.1049, allocations: 95.64 kB / 463.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001778/0.1051, allocations: 143.3 kB / 463.4 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003194/0.1054, allocations: 286.9 kB / 463.7 MB, free: 1.219 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1054, allocations: 0 / 463.7 MB, free: 1.219 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1054, allocations: 0 / 463.7 MB, free: 1.219 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.1054, allocations: 0 / 463.7 MB, free: 1.219 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.001044/0.1065, allocations: 0.5932 MB / 464.3 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.1065, allocations: 11.89 kB / 464.3 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.064e-05/0.1066, allocations: 66.72 kB / 464.3 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.46e-05/0.1067, allocations: 32.56 kB / 464.4 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004329/0.1071, allocations: 315 kB / 464.7 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.1072, allocations: 20.38 kB / 464.7 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.888e-05/0.1072, allocations: 16 kB / 464.7 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004323/0.1076, allocations: 298.8 kB / 465 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.1077, allocations: 0 / 465 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.325e-05/0.1077, allocations: 8 kB / 465 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.1077, allocations: 4 kB / 465 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002973/0.108, allocations: 184.9 kB / 465.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001368/0.1094, allocations: 1.228 MB / 466.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003211/0.1097, allocations: 117.2 kB / 466.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.2e-05/0.1098, allocations: 45.77 kB / 466.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.1098, allocations: 0 / 466.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/0.1099, allocations: 30.56 kB / 466.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.283e-06/0.1099, allocations: 3.938 kB / 466.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009511/0.1108, allocations: 496.8 kB / 467.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.739e-05/0.1109, allocations: 81.11 kB / 467.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002514/0.1112, allocations: 250.6 kB / 467.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/0.1112, allocations: 29.7 kB / 467.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.1113, allocations: 199.6 kB / 467.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.055e-05/0.1114, allocations: 35.45 kB / 467.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.26e-05/0.1115, allocations: 53.73 kB / 467.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.1116, allocations: 326.8 kB / 468.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.165e-05/0.1117, allocations: 39.97 kB / 468.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001262/0.1118, allocations: 135.6 kB / 468.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002215/0.1121, allocations: 180.7 kB / 468.4 MB, free: 12.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1121, allocations: 4 kB / 468.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002912/0.1124, allocations: 205.1 kB / 468.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.1124, allocations: 8 kB / 468.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.647e-06/0.1124, allocations: 4.438 kB / 468.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.1124, allocations: 8 kB / 468.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.1126, allocations: 43.91 kB / 468.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.1126, allocations: 8 kB / 468.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/0.1127, allocations: 19.78 kB / 468.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/0.1128, allocations: 12 kB / 468.7 MB, free: 11.71 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): 24 * 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.0001304/0.1129, allocations: 150.9 kB / 468.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.496e-05/0.1129, allocations: 23.8 kB / 468.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002199/0.1132, allocations: 139.1 kB / 469 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1132, allocations: 7.938 kB / 469 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.1132, allocations: 0 / 469 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.912e-06/0.1132, allocations: 7.938 kB / 469 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000503/0.1137, allocations: 475.3 kB / 469.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1137, allocations: 0 / 469.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.1139, allocations: 20 kB / 469.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.1139, allocations: 0 / 469.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.1139, allocations: 11.92 kB / 469.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.1139, allocations: 0 / 469.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.1139, allocations: 4.031 kB / 469.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003001/0.1142, allocations: 288.4 kB / 469.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.623e-05/0.1143, allocations: 92.83 kB / 469.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.346e-05/0.1143, allocations: 11.94 kB / 469.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.1144, allocations: 0 / 469.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.351e-05/0.1145, allocations: 12.05 kB / 469.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.1145, allocations: 8 kB / 469.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001339/0.1146, allocations: 174 kB / 470.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1146, allocations: 0 / 470.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003302/0.1149, allocations: 44 kB / 470.2 MB, free: 10.17 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (13): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005715/0.1155, allocations: 0.8076 MB / 471 MB, free: 9.328 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002236/0.1158, allocations: 119.8 kB / 471.1 MB, free: 9.211 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1158, allocations: 0.9375 kB / 471.1 MB, free: 9.211 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.346e-05/0.1158, allocations: 43.92 kB / 471.1 MB, free: 9.168 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000472/0.1163, allocations: 63.22 kB / 471.2 MB, free: 9.109 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002494/0.1188, allocations: 2.449 MB / 473.6 MB, free: 6.484 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003299/0.1192, allocations: 0.7753 MB / 474.4 MB, free: 5.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001297/0.1193, allocations: 30.28 kB / 474.4 MB, free: 5.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.1194, allocations: 83.39 kB / 474.5 MB, free: 5.562 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1194, allocations: 0 / 474.5 MB, free: 5.562 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02455/0.144, allocations: 4.523 MB / 479 MB, free: 1.133 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.321/7.465, allocations: 3.625 kB / 479 MB, free: 1.133 MB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_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_ImpedanceOneTerm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1)