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.001453/0.001453, allocations: 110 kB / 17.68 MB, free: 5.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.00157/0.00157, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.601/1.601, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1827/0.1827, allocations: 38.03 MB / 330.5 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 61.48 kB / 400.2 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1068, allocations: 58.07 MB / 458.3 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.006022/0.1129, allocations: 4.42 MB / 462.7 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002374/0.1153, allocations: 1.429 MB / 464.2 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002459/0.1155, allocations: 11.94 kB / 464.2 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009906/0.1165, allocations: 374.4 kB / 464.5 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005048/0.1171, allocations: 226.8 kB / 464.8 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000664/0.1177, allocations: 243.4 kB / 465 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006537/0.1184, allocations: 0.5339 MB / 465.5 MB, free: 88 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004378/0.1189, allocations: 277.1 kB / 465.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003859/0.1192, allocations: 251 kB / 466 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004999/0.1198, allocations: 295 kB / 466.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.485e-05/0.1198, allocations: 32 kB / 466.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002815/0.1201, allocations: 139.8 kB / 466.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002172/0.1204, allocations: 219.5 kB / 466.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002588/0.1206, allocations: 238.8 kB / 466.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006054/0.1212, allocations: 0.5607 MB / 467.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1213, allocations: 4 kB / 467.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1213, allocations: 0 / 467.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.928e-05/0.1213, allocations: 0 / 467.5 MB, free: 14.09 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.001184/0.1225, allocations: 0.731 MB / 468.2 MB, free: 13.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.1225, allocations: 15.89 kB / 468.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005021/0.123, allocations: 80.31 kB / 468.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006887/0.1237, allocations: 407.2 kB / 468.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.892e-05/0.1238, allocations: 37.38 kB / 468.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/0.1239, allocations: 48.11 kB / 468.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008443/0.1248, allocations: 0.6286 MB / 469.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.147e-05/0.1248, allocations: 3.938 kB / 469.4 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.364e-05/0.1248, allocations: 20 kB / 469.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001123/0.125, allocations: 28.98 kB / 469.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000726/0.1257, allocations: 483.5 kB / 470 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003092/0.1288, allocations: 2.876 MB / 472.8 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004558/0.1293, allocations: 233 kB / 473.1 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002015/0.1295, allocations: 145.7 kB / 473.2 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.491e-05/0.1295, allocations: 11.92 kB / 473.2 MB, free: 8.051 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/0.1296, allocations: 38.56 kB / 473.3 MB, free: 8.004 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.214e-06/0.1296, allocations: 4 kB / 473.3 MB, free: 8 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001473/0.131, allocations: 0.963 MB / 474.2 MB, free: 6.984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/0.1311, allocations: 81.11 kB / 474.3 MB, free: 6.887 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002848/0.1314, allocations: 324.3 kB / 474.6 MB, free: 6.566 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.1314, allocations: 29.7 kB / 474.7 MB, free: 6.531 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001554/0.1316, allocations: 279.2 kB / 474.9 MB, free: 6.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.467e-05/0.1317, allocations: 106.8 kB / 475 MB, free: 6.145 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.1318, allocations: 86.17 kB / 475.1 MB, free: 6.051 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.132, allocations: 350.7 kB / 475.5 MB, free: 5.699 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002085/0.1322, allocations: 145 kB / 475.6 MB, free: 5.559 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003176/0.1325, allocations: 343.7 kB / 475.9 MB, free: 5.133 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006788/0.1332, allocations: 0.5247 MB / 476.5 MB, free: 4.516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/0.1332, allocations: 3.938 kB / 476.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.000771/0.134, allocations: 0.5363 MB / 477 MB, free: 3.969 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.853e-05/0.134, allocations: 8 kB / 477 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.134, allocations: 4 kB / 477 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.736e-05/0.1341, allocations: 15.98 kB / 477 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004047/0.1345, allocations: 115.8 kB / 477.1 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.654e-05/0.1345, allocations: 15.94 kB / 477.2 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002336/0.1347, allocations: 27.97 kB / 477.2 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.787e-05/0.1348, allocations: 24 kB / 477.2 MB, free: 3.762 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.0002289/0.135, allocations: 221.6 kB / 477.4 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.161e-05/0.1351, allocations: 27.62 kB / 477.5 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006083/0.1357, allocations: 365.7 kB / 477.8 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.1357, allocations: 4 kB / 477.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.1357, allocations: 4 kB / 477.8 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.1357, allocations: 0 / 477.8 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001509/0.1373, allocations: 0.8875 MB / 478.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.1373, allocations: 4 kB / 478.7 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003183/0.1376, allocations: 63.91 kB / 478.8 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.037e-06/0.1376, allocations: 4 kB / 478.8 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.051e-05/0.1377, allocations: 8 kB / 478.8 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.069e-05/0.1377, allocations: 11.92 kB / 478.8 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.1377, allocations: 0 / 478.8 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007471/0.1384, allocations: 0.5779 MB / 479.4 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.1385, allocations: 108.8 kB / 479.5 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.077e-05/0.1386, allocations: 8 kB / 479.5 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.1388, allocations: 15.92 kB / 479.5 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.944e-05/0.1388, allocations: 19.98 kB / 479.5 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.239e-05/0.1389, allocations: 11.98 kB / 479.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000221/0.1391, allocations: 223 kB / 479.7 MB, free: 1.078 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1391, allocations: 0 / 479.7 MB, free: 1.078 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004599/0.1396, allocations: 92 kB / 479.8 MB, free: 0.9883 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.0001171/0.1397, allocations: 115.3 kB / 480 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005469/0.1403, allocations: 380.3 kB / 480.3 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1403, allocations: 3.938 kB / 480.3 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002804/0.1406, allocations: 145.4 kB / 480.5 MB, free: 360 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004946/0.1411, allocations: 73.52 kB / 480.5 MB, free: 292 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.1429, allocations: 0.9859 MB / 481.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005994/0.1435, allocations: 0.8582 MB / 482.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000333/0.1438, allocations: 131.1 kB / 482.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.876e-05/0.144, allocations: 31.38 kB / 482.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.144, allocations: 4 kB / 482.5 MB, free: 14.21 MB / 366.1 MB Notification: Performance of Templates: time 0.008054/0.152, allocations: 3.326 MB / 485.9 MB, free: 10.91 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceInertial.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches