Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.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.Introductory.InitialSteadyState,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_InitialSteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.InitialSteadyState,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_InitialSteadyState",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.00164/0.00164, allocations: 108 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.001853/0.001853, 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.322/1.322, allocations: 222.9 MB / 241.6 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1809/0.1809, allocations: 38.04 MB / 329.7 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 67.05 kB / 398.9 MB, free: 34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1024, allocations: 58.06 MB / 457 MB, free: 7.992 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.InitialSteadyState): time 0.005557/0.108, allocations: 4.413 MB / 461.4 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002279/0.1103, allocations: 1.433 MB / 462.8 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002587/0.1106, allocations: 19.88 kB / 462.8 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00106/0.1116, allocations: 366.5 kB / 463.2 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006795/0.1123, allocations: 250.8 kB / 463.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006953/0.113, allocations: 239.4 kB / 463.7 MB, free: 1.254 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006519/0.1137, allocations: 0.5612 MB / 464.2 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004789/0.1142, allocations: 285 kB / 464.5 MB, free: 424 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004079/0.1146, allocations: 263 kB / 464.8 MB, free: 160 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005463/0.1152, allocations: 355 kB / 465.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.186e-05/0.1153, allocations: 40 kB / 465.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004739/0.1158, allocations: 235.6 kB / 465.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000239/0.116, allocations: 243.4 kB / 465.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002856/0.1163, allocations: 246.8 kB / 465.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007077/0.117, allocations: 0.6582 MB / 466.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.117, allocations: 0 / 466.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1171, allocations: 4 kB / 466.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.1171, allocations: 0 / 466.5 MB, free: 14.39 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001419/0.1185, allocations: 0.7699 MB / 467.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.1185, allocations: 15.89 kB / 467.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001022/0.1187, allocations: 82.7 kB / 467.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006552/0.1193, allocations: 100.2 kB / 467.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006695/0.12, allocations: 407.2 kB / 467.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.877e-05/0.12, allocations: 33.31 kB / 467.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001442/0.1202, allocations: 47.92 kB / 468 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.1212, allocations: 0.6804 MB / 468.6 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.95e-05/0.1213, allocations: 3.938 kB / 468.6 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.414e-05/0.1213, allocations: 19.98 kB / 468.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001944/0.1215, allocations: 52.95 kB / 468.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001038/0.1226, allocations: 0.6713 MB / 469.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003494/0.1261, allocations: 2.433 MB / 471.8 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005836/0.1267, allocations: 364 kB / 472.2 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003288/0.127, allocations: 246.3 kB / 472.4 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.675e-05/0.1271, allocations: 8.281 kB / 472.4 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.1271, allocations: 42.78 kB / 472.5 MB, free: 8.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.455e-06/0.1271, allocations: 0 / 472.5 MB, free: 8.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.002259/0.1294, allocations: 1.466 MB / 473.9 MB, free: 6.641 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/0.1294, allocations: 81.11 kB / 474 MB, free: 6.543 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002611/0.1297, allocations: 287 kB / 474.3 MB, free: 6.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.1297, allocations: 41.7 kB / 474.3 MB, free: 6.203 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.1299, allocations: 247.7 kB / 474.6 MB, free: 5.953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.13, allocations: 157.7 kB / 474.7 MB, free: 5.797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000133/0.1302, allocations: 94.16 kB / 474.8 MB, free: 5.699 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1303, allocations: 346.8 kB / 475.2 MB, free: 5.352 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002995/0.1306, allocations: 217 kB / 475.4 MB, free: 5.141 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003755/0.131, allocations: 368.7 kB / 475.7 MB, free: 4.727 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007612/0.1317, allocations: 0.6239 MB / 476.4 MB, free: 4.043 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.1317, allocations: 4 kB / 476.4 MB, free: 4.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001239/0.133, allocations: 0.7162 MB / 477.1 MB, free: 3.309 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.133, allocations: 7.984 kB / 477.1 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008123/0.1338, allocations: 0.5225 MB / 477.6 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003202/0.1342, allocations: 72.8 kB / 477.7 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004133/0.1346, allocations: 108 kB / 477.8 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001619/0.1362, allocations: 1.73 MB / 479.5 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003064/0.1365, allocations: 27.97 kB / 479.5 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.463e-05/0.1366, allocations: 23.98 kB / 479.6 MB, free: 0.6836 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (54): * Single equations (assignments): 51 * Array equations: 2 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002487/0.1369, allocations: 213.6 kB / 479.8 MB, free: 476 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.887e-05/0.137, allocations: 43.47 kB / 479.8 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008673/0.1378, allocations: 0.5669 MB / 480.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.359e-05/0.1379, allocations: 12 kB / 480.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-06/0.1379, allocations: 0 / 480.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.1379, allocations: 3.984 kB / 480.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001809/0.1397, allocations: 1.199 MB / 481.6 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.1397, allocations: 7.938 kB / 481.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004256/0.1402, allocations: 83.88 kB / 481.7 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/0.1402, allocations: 4 kB / 481.7 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.322e-05/0.1402, allocations: 8 kB / 481.7 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.1402, allocations: 4 kB / 481.7 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1402, allocations: 3.938 kB / 481.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001123/0.1414, allocations: 0.9258 MB / 482.6 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.521e-05/0.1415, allocations: 116.7 kB / 482.7 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.526e-05/0.1415, allocations: 8 kB / 482.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002336/0.1418, allocations: 15.98 kB / 482.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.716e-05/0.1418, allocations: 39.83 kB / 482.8 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.874e-05/0.1419, allocations: 12 kB / 482.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001782/0.1421, allocations: 201.9 kB / 483 MB, free: 13.1 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1421, allocations: 0 / 483 MB, free: 13.1 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004855/0.1426, allocations: 120 kB / 483.1 MB, free: 12.98 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (39): * Single equations (assignments): 36 * Array equations: 2 * 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.001455/0.144, allocations: 1.502 MB / 484.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001176/0.1452, allocations: 0.7816 MB / 485.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.1452, allocations: 0 / 485.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003337/0.1456, allocations: 267.4 kB / 485.7 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005027/0.1461, allocations: 67.67 kB / 485.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005384/0.1515, allocations: 4.582 MB / 490.3 MB, free: 5.508 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004046/0.1519, allocations: 0.8782 MB / 491.2 MB, free: 4.605 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003363/0.1522, allocations: 131.1 kB / 491.3 MB, free: 4.477 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002085/0.1525, allocations: 151.4 kB / 491.5 MB, free: 4.328 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1525, allocations: 3.938 kB / 491.5 MB, free: 4.324 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02847/0.1809, allocations: 8.382 MB / 499.9 MB, free: 12.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.675/9.856, allocations: 11.36 kB / 499.9 MB, free: 12.08 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_latest_PowerSystems_Examples_Introductory_InitialSteadyState.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.InitialSteadyState.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches