Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.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: translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial") translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001055, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001092/0.001092, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.284/1.284, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1689/0.1689, allocations: 38.03 MB / 329.7 MB, free: 8.812 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 57.92 kB / 398.8 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09532/0.09658, allocations: 58.06 MB / 456.9 MB, free: 8.047 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.005849/0.1025, allocations: 4.42 MB / 461.3 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002145/0.1046, allocations: 1.425 MB / 462.7 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001565/0.1048, allocations: 11.94 kB / 462.7 MB, free: 2.156 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009679/0.1058, allocations: 378.4 kB / 463.1 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004193/0.1062, allocations: 226.8 kB / 463.3 MB, free: 1.562 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000556/0.1068, allocations: 243.4 kB / 463.5 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004922/0.1073, allocations: 0.5378 MB / 464.1 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003885/0.1077, allocations: 281.1 kB / 464.4 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002873/0.108, allocations: 239 kB / 464.6 MB, free: 280 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004115/0.1084, allocations: 295 kB / 464.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.011e-05/0.1085, allocations: 35.94 kB / 464.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002404/0.1087, allocations: 131.8 kB / 465 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001922/0.1089, allocations: 223.5 kB / 465.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000221/0.1092, allocations: 238.8 kB / 465.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005052/0.1097, allocations: 0.553 MB / 466 MB, free: 14.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1097, allocations: 0 / 466 MB, free: 14.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1097, allocations: 3.938 kB / 466.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.1097, allocations: 0 / 466.1 MB, free: 14.81 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.00113/0.1108, allocations: 0.7388 MB / 466.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.1109, allocations: 11.89 kB / 466.8 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005332/0.1114, allocations: 84.33 kB / 466.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005426/0.112, allocations: 391.2 kB / 467.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.576e-05/0.112, allocations: 29.38 kB / 467.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001226/0.1121, allocations: 44.12 kB / 467.3 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008114/0.113, allocations: 0.6287 MB / 468 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.113, allocations: 7.984 kB / 468 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.083e-05/0.113, allocations: 19.94 kB / 468 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001156/0.1132, allocations: 32.98 kB / 468 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006896/0.1139, allocations: 479.4 kB / 468.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00325/0.1171, allocations: 2.887 MB / 471.4 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000348/0.1175, allocations: 229 kB / 471.6 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002027/0.1177, allocations: 145.7 kB / 471.7 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.902e-05/0.1177, allocations: 11.92 kB / 471.8 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.1178, allocations: 42.55 kB / 471.8 MB, free: 8.723 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.573e-06/0.1178, allocations: 0 / 471.8 MB, free: 8.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001529/0.1193, allocations: 0.963 MB / 472.8 MB, free: 7.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.036e-05/0.1194, allocations: 77.11 kB / 472.8 MB, free: 7.613 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003025/0.1197, allocations: 332.3 kB / 473.2 MB, free: 7.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/0.1197, allocations: 29.7 kB / 473.2 MB, free: 7.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001713/0.1199, allocations: 279.4 kB / 473.5 MB, free: 6.969 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.053e-05/0.12, allocations: 98.64 kB / 473.6 MB, free: 6.871 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.1201, allocations: 94.16 kB / 473.7 MB, free: 6.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.1203, allocations: 346.7 kB / 474 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002134/0.1205, allocations: 145 kB / 474.1 MB, free: 6.281 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003665/0.1209, allocations: 347.7 kB / 474.5 MB, free: 5.852 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006133/0.1215, allocations: 0.5208 MB / 475 MB, free: 5.238 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1215, allocations: 0 / 475 MB, free: 5.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007359/0.1222, allocations: 0.5283 MB / 475.5 MB, free: 4.703 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.1223, allocations: 8 kB / 475.5 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.1223, allocations: 8 kB / 475.5 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/0.1223, allocations: 8 kB / 475.5 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004202/0.1227, allocations: 123.8 kB / 475.7 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.48e-05/0.1228, allocations: 11.94 kB / 475.7 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002233/0.123, allocations: 23.98 kB / 475.7 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.162e-05/0.123, allocations: 24.28 kB / 475.7 MB, free: 4.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * 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.0002137/0.1233, allocations: 225.5 kB / 475.9 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.962e-05/0.1233, allocations: 31.62 kB / 476 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005828/0.1239, allocations: 365.6 kB / 476.3 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.1239, allocations: 4 kB / 476.3 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.1239, allocations: 0 / 476.3 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.124, allocations: 7.984 kB / 476.3 MB, free: 3.855 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001302/0.1253, allocations: 0.887 MB / 477.2 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1253, allocations: 0 / 477.2 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003095/0.1256, allocations: 67.95 kB / 477.3 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.795e-06/0.1256, allocations: 7.938 kB / 477.3 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.387e-05/0.1256, allocations: 15.88 kB / 477.3 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.1256, allocations: 3.938 kB / 477.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.1257, allocations: 8.094 kB / 477.3 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007897/0.1265, allocations: 0.577 MB / 477.9 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.696e-05/0.1266, allocations: 104.7 kB / 478 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.969e-05/0.1266, allocations: 4 kB / 478 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001757/0.1268, allocations: 27.91 kB / 478 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.323e-05/0.1269, allocations: 19.97 kB / 478.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.881e-05/0.1269, allocations: 8 kB / 478.1 MB, free: 2.016 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002044/0.1271, allocations: 219 kB / 478.3 MB, free: 1.801 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1271, allocations: 0 / 478.3 MB, free: 1.801 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004185/0.1275, allocations: 96 kB / 478.4 MB, free: 1.707 MB / 350.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 (31): * Single equations (assignments): 30 * 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.0001269/0.1277, allocations: 107.5 kB / 478.5 MB, free: 1.594 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006127/0.1283, allocations: 413.5 kB / 478.9 MB, free: 1.191 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1283, allocations: 0 / 478.9 MB, free: 1.191 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002008/0.1285, allocations: 148.2 kB / 479 MB, free: 1.047 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005176/0.129, allocations: 77.95 kB / 479.1 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00164/0.1307, allocations: 1.009 MB / 480.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004901/0.1312, allocations: 0.8504 MB / 481 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003264/0.1315, allocations: 135.1 kB / 481.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.994e-05/0.1316, allocations: 31.44 kB / 481.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1316, allocations: 0 / 481.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of Templates: time 0.007349/0.139, allocations: 3.329 MB / 484.5 MB, free: 11.59 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceInertial.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches