Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.AC3ph.Precalculation.Z_matrixEqCirc3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3",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.001092/0.001092, allocations: 111 kB / 16.92 MB, free: 5.895 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.001069/0.001069, allocations: 191.3 kB / 17.85 MB, free: 5.195 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.417/1.417, 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-master/package.mo): time 0.1819/0.1819, allocations: 38.04 MB / 329.7 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 56.61 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1091, allocations: 58.06 MB / 457 MB, free: 7.988 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3): time 0.003588/0.1127, allocations: 2.032 MB / 459 MB, free: 5.934 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008476/0.1136, allocations: 0.526 MB / 459.5 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.893e-05/0.1136, allocations: 4 kB / 459.5 MB, free: 5.402 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001408/0.1138, allocations: 11.92 kB / 459.5 MB, free: 5.391 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001026/0.1139, allocations: 27.83 kB / 459.6 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000376/0.1143, allocations: 63.84 kB / 459.6 MB, free: 5.301 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001295/0.1144, allocations: 67.7 kB / 459.7 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.142e-05/0.1145, allocations: 4 kB / 459.7 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.1146, allocations: 31.84 kB / 459.7 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.573e-05/0.1147, allocations: 23.91 kB / 459.8 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.148e-05/0.1147, allocations: 0 / 459.8 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001767/0.1149, allocations: 79.83 kB / 459.8 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.432e-05/0.115, allocations: 47.84 kB / 459.9 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.791e-05/0.115, allocations: 39.56 kB / 459.9 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002541/0.1153, allocations: 147.8 kB / 460.1 MB, free: 4.867 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1153, allocations: 3.938 kB / 460.1 MB, free: 4.863 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1153, allocations: 4 kB / 460.1 MB, free: 4.859 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.1153, allocations: 0 / 460.1 MB, free: 4.859 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0004843/0.1158, allocations: 484.4 kB / 460.6 MB, free: 4.332 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.1158, allocations: 15.89 kB / 460.6 MB, free: 4.316 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.253e-05/0.1159, allocations: 46.73 kB / 460.6 MB, free: 4.262 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.933e-05/0.1159, allocations: 12.75 kB / 460.6 MB, free: 4.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000205/0.1162, allocations: 206.7 kB / 460.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.142e-05/0.1162, allocations: 0 / 460.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.108e-05/0.1162, allocations: 7.938 kB / 460.8 MB, free: 4.004 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001825/0.1164, allocations: 130.6 kB / 461 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.121e-06/0.1164, allocations: 0 / 461 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.1164, allocations: 0 / 461 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.1164, allocations: 0 / 461 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001024/0.1165, allocations: 92.28 kB / 461.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000191/0.1167, allocations: 198 kB / 461.2 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001468/0.1169, allocations: 154.9 kB / 461.4 MB, free: 3.379 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001233/0.117, allocations: 145.1 kB / 461.5 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.606e-06/0.117, allocations: 4 kB / 461.5 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.1171, allocations: 34.56 kB / 461.6 MB, free: 3.188 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 1.212e-06/0.1171, allocations: 0 / 461.6 MB, free: 3.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.0005166/0.1176, allocations: 471.6 kB / 462 MB, free: 2.715 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/0.1177, allocations: 105.1 kB / 462.1 MB, free: 2.594 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.1178, allocations: 146.4 kB / 462.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.209e-05/0.1178, allocations: 25.7 kB / 462.3 MB, free: 2.402 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.546e-05/0.1179, allocations: 100.8 kB / 462.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.688e-05/0.118, allocations: 138 kB / 462.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.408e-05/0.118, allocations: 33.7 kB / 462.6 MB, free: 2.121 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.1181, allocations: 334.8 kB / 462.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.048e-05/0.1182, allocations: 99.91 kB / 463 MB, free: 1.688 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.513e-05/0.1183, allocations: 88.95 kB / 463.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002835/0.1186, allocations: 364.4 kB / 463.4 MB, free: 1.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1186, allocations: 3.938 kB / 463.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002953/0.1189, allocations: 319.1 kB / 463.8 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.306e-05/0.119, allocations: 89.69 kB / 463.8 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.119, allocations: 4 kB / 463.8 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.119, allocations: 0 / 463.8 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.02e-07/0.119, allocations: 0 / 463.8 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.119, allocations: 0 / 463.8 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.819e-05/0.1191, allocations: 19.75 kB / 463.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.764e-05/0.1191, allocations: 8 kB / 463.9 MB, free: 0.7773 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0002129/0.1193, allocations: 239.2 kB / 464.1 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.044e-05/0.1194, allocations: 23.75 kB / 464.1 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.854e-05/0.1194, allocations: 17.97 kB / 464.1 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.1194, allocations: 0 / 464.1 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1194, allocations: 0 / 464.1 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.1194, allocations: 4 kB / 464.2 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001714/0.1196, allocations: 241.1 kB / 464.4 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1196, allocations: 0 / 464.4 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.02e-07/0.1196, allocations: 0 / 464.4 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1196, allocations: 0 / 464.4 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.1197, allocations: 8 kB / 464.4 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.606e-06/0.1197, allocations: 3.984 kB / 464.4 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.1197, allocations: 0 / 464.4 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009298/0.1206, allocations: 0.8965 MB / 465.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.775e-05/0.1207, allocations: 100.8 kB / 465.4 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.31e-05/0.1207, allocations: 8 kB / 465.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.377e-05/0.1208, allocations: 4 kB / 465.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.019e-05/0.1208, allocations: 8 kB / 465.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.675e-05/0.1208, allocations: 7.938 kB / 465.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.072e-05/0.1209, allocations: 122 kB / 465.5 MB, free: 15 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.1209, allocations: 4.031 kB / 465.5 MB, free: 15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002586/0.1212, allocations: 60 kB / 465.6 MB, free: 14.94 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.001152/0.1223, allocations: 1.461 MB / 467.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.1236, allocations: 1.585 MB / 468.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1236, allocations: 0 / 468.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009464/0.1245, allocations: 1.37 MB / 470 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002488/0.1248, allocations: 35.84 kB / 470.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003339/0.1281, allocations: 3.416 MB / 473.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003137/0.1285, allocations: 0.7517 MB / 474.2 MB, free: 6.152 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.054e-05/0.1285, allocations: 256 / 474.2 MB, free: 6.152 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.649e-05/0.1285, allocations: 43.42 kB / 474.3 MB, free: 6.109 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1286, allocations: 0 / 474.3 MB, free: 6.109 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0233/0.1519, allocations: 4.806 MB / 479.1 MB, free: 1.418 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.51/7.661, allocations: 11.25 kB / 479.1 MB, free: 1.41 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches