Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.FixedCurrentTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_FixedCurrentTest",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.001098/0.001098, allocations: 110.3 kB / 16.92 MB, free: 5.785 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.00108/0.00108, 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.311/1.311, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1842/0.1842, allocations: 38.02 MB / 329.7 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 62.55 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09567/0.09694, allocations: 58.07 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.004593/0.1016, allocations: 3.472 MB / 460.4 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00191/0.1035, allocations: 1.492 MB / 461.9 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.1036, allocations: 4 kB / 461.9 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007239/0.1044, allocations: 262.4 kB / 462.2 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004824/0.1049, allocations: 279 kB / 462.5 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002726/0.1051, allocations: 127.6 kB / 462.6 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003331/0.1055, allocations: 347 kB / 462.9 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002543/0.1058, allocations: 133.9 kB / 463 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000193/0.106, allocations: 151.4 kB / 463.2 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002117/0.1062, allocations: 143.5 kB / 463.3 MB, free: 1.543 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.756e-05/0.1062, allocations: 16 kB / 463.4 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004652/0.1067, allocations: 335.1 kB / 463.7 MB, free: 1.199 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001074/0.1068, allocations: 95.75 kB / 463.8 MB, free: 1.105 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001129/0.1069, allocations: 111.4 kB / 463.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004264/0.1074, allocations: 355 kB / 464.2 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1074, allocations: 4 kB / 464.2 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1074, allocations: 0 / 464.2 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.1074, allocations: 4 kB / 464.2 MB, free: 0.6406 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.0007045/0.1081, allocations: 0.5102 MB / 464.7 MB, free: 84 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.1081, allocations: 15.89 kB / 464.8 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.107e-05/0.1082, allocations: 58.72 kB / 464.8 MB, free: 0 / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008648/0.1091, allocations: 88.81 kB / 464.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002923/0.1094, allocations: 259.7 kB / 465.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.1094, allocations: 20.31 kB / 465.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.321e-05/0.1095, allocations: 16.38 kB / 465.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004611/0.1099, allocations: 325.8 kB / 465.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.11, allocations: 0 / 465.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.591e-05/0.11, allocations: 8 kB / 465.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.236e-05/0.11, allocations: 15.98 kB / 465.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004076/0.1104, allocations: 291.8 kB / 465.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001583/0.112, allocations: 1.275 MB / 467.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004254/0.1125, allocations: 229.1 kB / 467.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001388/0.1126, allocations: 97.73 kB / 467.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.495e-05/0.1127, allocations: 8 kB / 467.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/0.1127, allocations: 34.55 kB / 467.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.563e-06/0.1127, allocations: 0 / 467.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007916/0.1135, allocations: 447.5 kB / 467.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.578e-05/0.1135, allocations: 85.05 kB / 468 MB, free: 12.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001787/0.1137, allocations: 194.3 kB / 468.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.1138, allocations: 29.83 kB / 468.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.727e-05/0.1139, allocations: 159.8 kB / 468.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.974e-05/0.1139, allocations: 59.19 kB / 468.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.687e-05/0.114, allocations: 57.62 kB / 468.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.1141, allocations: 326.8 kB / 468.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.1142, allocations: 83.95 kB / 468.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001686/0.1144, allocations: 156.5 kB / 469 MB, free: 11.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003178/0.1147, allocations: 270.7 kB / 469.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1148, allocations: 0 / 469.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004135/0.1152, allocations: 297.4 kB / 469.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.1152, allocations: 8 kB / 469.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.1152, allocations: 7.938 kB / 469.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.1152, allocations: 0 / 469.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002378/0.1155, allocations: 51.91 kB / 469.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.154e-06/0.1155, allocations: 4 kB / 469.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001421/0.1156, allocations: 15.98 kB / 469.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.288e-05/0.1157, allocations: 12 kB / 469.7 MB, free: 10.83 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (27): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001341/0.1158, allocations: 153.8 kB / 469.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.584e-05/0.1159, allocations: 19.84 kB / 469.8 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003648/0.1162, allocations: 237.6 kB / 470.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.1162, allocations: 3.984 kB / 470.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.1163, allocations: 4 kB / 470.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.1163, allocations: 4 kB / 470.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001279/0.1176, allocations: 0.9517 MB / 471 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.1176, allocations: 4 kB / 471 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001476/0.1177, allocations: 35.92 kB / 471.1 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.1177, allocations: 4 kB / 471.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.1178, allocations: 15.92 kB / 471.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.73e-06/0.1178, allocations: 8 kB / 471.1 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.696e-06/0.1178, allocations: 4 kB / 471.1 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003998/0.1182, allocations: 413.1 kB / 471.5 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.333e-05/0.1183, allocations: 100.8 kB / 471.6 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.741e-05/0.1183, allocations: 15.94 kB / 471.6 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.1185, allocations: 11.98 kB / 471.6 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.013e-05/0.1185, allocations: 23.86 kB / 471.7 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.423e-05/0.1186, allocations: 12 kB / 471.7 MB, free: 8.629 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000126/0.1187, allocations: 155 kB / 471.8 MB, free: 8.477 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1187, allocations: 3.938 kB / 471.8 MB, free: 8.473 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003586/0.1191, allocations: 52 kB / 471.9 MB, free: 8.422 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (18): * Single equations (assignments): 17 * 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.0006629/0.1197, allocations: 0.9403 MB / 472.8 MB, free: 7.406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003346/0.1201, allocations: 226.5 kB / 473 MB, free: 7.188 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1201, allocations: 0.5625 kB / 473 MB, free: 7.188 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001318/0.1202, allocations: 99.77 kB / 473.1 MB, free: 7.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000453/0.1207, allocations: 58.17 kB / 473.2 MB, free: 7.035 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002943/0.1236, allocations: 2.669 MB / 475.9 MB, free: 4.133 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003382/0.124, allocations: 0.771 MB / 476.6 MB, free: 3.336 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001453/0.1241, allocations: 53.5 kB / 476.7 MB, free: 3.281 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.1243, allocations: 63.41 kB / 476.7 MB, free: 3.219 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1243, allocations: 0 / 476.7 MB, free: 3.219 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01966/0.1439, allocations: 4.04 MB / 480.8 MB, free: 15.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.571/7.715, allocations: 15.97 kB / 480.8 MB, free: 15.23 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest_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_FixedCurrentTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1)