Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.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.AC3ph.Elementary.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor") translateModel(PowerSystems.Examples.AC3ph.Elementary.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 117.7 kB / 17.7 MB, free: 5.301 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.001241/0.001242, allocations: 187 kB / 18.63 MB, free: 4.375 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.42/1.42, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1776/0.1776, allocations: 38.04 MB / 330.5 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001213, allocations: 68.34 kB / 400.3 MB, free: 33.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1024, allocations: 58.06 MB / 458.3 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.005783/0.1082, allocations: 4.51 MB / 462.8 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002113/0.1103, allocations: 1.41 MB / 464.2 MB, free: 1.402 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001532/0.1105, allocations: 15.94 kB / 464.3 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008591/0.1114, allocations: 282.6 kB / 464.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005344/0.1119, allocations: 286.7 kB / 464.8 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005854/0.1125, allocations: 251.4 kB / 465.1 MB, free: 0.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006953/0.1132, allocations: 0.6664 MB / 465.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003893/0.1136, allocations: 248 kB / 466 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003681/0.114, allocations: 290.9 kB / 466.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005548/0.1146, allocations: 418.7 kB / 466.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.36e-05/0.1146, allocations: 48 kB / 466.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004369/0.1151, allocations: 211.7 kB / 466.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002725/0.1154, allocations: 255.3 kB / 467.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002889/0.1157, allocations: 290.5 kB / 467.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007355/0.1164, allocations: 0.7438 MB / 468.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1164, allocations: 0 / 468.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1164, allocations: 0 / 468.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.129e-05/0.1165, allocations: 0 / 468.2 MB, free: 13.44 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001506/0.118, allocations: 0.8923 MB / 469.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.118, allocations: 11.89 kB / 469.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005346/0.1186, allocations: 92.22 kB / 469.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006719/0.1192, allocations: 435.9 kB / 469.6 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.704e-05/0.1193, allocations: 29.36 kB / 469.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.536e-05/0.1194, allocations: 48.11 kB / 469.7 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001067/0.1204, allocations: 0.859 MB / 470.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.1205, allocations: 3.938 kB / 470.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.33e-05/0.1205, allocations: 23.97 kB / 470.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001355/0.1207, allocations: 64.95 kB / 470.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001063/0.1218, allocations: 0.7963 MB / 471.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003475/0.1252, allocations: 2.702 MB / 474.1 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007932/0.126, allocations: 0.5876 MB / 474.7 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004963/0.1266, allocations: 454.7 kB / 475.2 MB, free: 6.156 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.389e-05/0.1266, allocations: 7.984 kB / 475.2 MB, free: 6.148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.1266, allocations: 42.5 kB / 475.2 MB, free: 6.098 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 3.286e-06/0.1267, allocations: 0 / 475.2 MB, free: 6.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.002717/0.1294, allocations: 1.887 MB / 477.1 MB, free: 4.168 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.731e-05/0.1295, allocations: 138.8 kB / 477.2 MB, free: 4.008 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002707/0.1298, allocations: 288.5 kB / 477.5 MB, free: 3.723 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.726e-05/0.1298, allocations: 33.7 kB / 477.6 MB, free: 3.684 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001505/0.13, allocations: 260.4 kB / 477.8 MB, free: 3.422 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001308/0.1301, allocations: 189.2 kB / 478 MB, free: 3.234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.1303, allocations: 102.1 kB / 478.1 MB, free: 3.129 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.1304, allocations: 354.7 kB / 478.4 MB, free: 2.773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004228/0.1308, allocations: 344.8 kB / 478.8 MB, free: 2.438 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000532/0.1314, allocations: 485.8 kB / 479.3 MB, free: 1.898 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001088/0.1325, allocations: 0.976 MB / 480.2 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.1325, allocations: 4 kB / 480.2 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001337/0.1338, allocations: 0.9811 MB / 481.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.209e-05/0.1339, allocations: 77.59 kB / 481.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.1339, allocations: 8 kB / 481.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000173/0.1341, allocations: 32.84 kB / 481.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003429/0.1345, allocations: 91.81 kB / 481.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001317/0.1358, allocations: 1.551 MB / 483 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003048/0.1361, allocations: 31.97 kB / 483 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.787e-05/0.1362, allocations: 31.98 kB / 483 MB, free: 13.89 MB / 366.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: 4 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1],system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 1 * 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.0003442/0.1365, allocations: 303.2 kB / 483.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001087/0.1367, allocations: 51.58 kB / 483.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001467/0.1381, allocations: 1.072 MB / 484.5 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.181e-05/0.1382, allocations: 11.98 kB / 484.5 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.1382, allocations: 0 / 484.5 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.1382, allocations: 7.984 kB / 484.5 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002491/0.1407, allocations: 1.804 MB / 486.3 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.1407, allocations: 0 / 486.3 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002664/0.141, allocations: 59.89 kB / 486.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001055/0.1411, allocations: 32.84 kB / 486.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.063e-05/0.1412, allocations: 11.98 kB / 486.4 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001171/0.1423, allocations: 1.547 MB / 487.9 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.1423, allocations: 0 / 487.9 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001502/0.1439, allocations: 1.183 MB / 489.1 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002816/0.1441, allocations: 168.7 kB / 489.3 MB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.064e-05/0.1442, allocations: 23.95 kB / 489.3 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002588/0.1445, allocations: 23.97 kB / 489.3 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.1446, allocations: 47.89 kB / 489.4 MB, free: 7.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.151e-05/0.1447, allocations: 23.98 kB / 489.4 MB, free: 7.227 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000194/0.1449, allocations: 203.1 kB / 489.6 MB, free: 7.027 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1449, allocations: 0 / 489.6 MB, free: 7.027 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005954/0.1455, allocations: 136 kB / 489.7 MB, free: 6.895 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,voltage.h_mod3[1],voltage.h_mod3[2],voltage.h_mod3[3]) * Number of discrete states: 3 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 25 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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 Backend phase and start with SimCode phase: time 0.0002795/0.1458, allocations: 147.1 kB / 489.9 MB, free: 6.738 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001672/0.1475, allocations: 1.378 MB / 491.2 MB, free: 5.336 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1475, allocations: 0 / 491.2 MB, free: 5.336 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009715/0.1485, allocations: 0.9291 MB / 492.2 MB, free: 4.383 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000514/0.149, allocations: 79.86 kB / 492.2 MB, free: 4.305 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001998/0.151, allocations: 1.381 MB / 493.6 MB, free: 2.887 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005207/0.1515, allocations: 0.8976 MB / 494.5 MB, free: 1.961 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002502/0.1518, allocations: 103.2 kB / 494.6 MB, free: 1.859 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.773e-05/0.1519, allocations: 31.44 kB / 494.7 MB, free: 1.828 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1519, allocations: 0 / 494.7 MB, free: 1.828 MB / 366.1 MB Notification: Performance of Templates: time 0.01104/0.163, allocations: 6.013 MB / 0.4889 GB, free: 11.85 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Sensor.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches