Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.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.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier") translateModel(PowerSystems.Examples.AC3ph.Elementary.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001725/0.001725, allocations: 113.9 kB / 17.68 MB, free: 5.379 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.001821/0.001822, allocations: 192 kB / 18.62 MB, free: 4.457 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.439/1.439, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1785/0.1785, allocations: 38.04 MB / 330.5 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 66.61 kB / 400.2 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1159, allocations: 58.06 MB / 458.3 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Rectifier): time 0.008456/0.1244, allocations: 6.771 MB / 465.1 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003721/0.1282, allocations: 2.146 MB / 467.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000435/0.1286, allocations: 27.81 kB / 467.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001539/0.1302, allocations: 0.5085 MB / 467.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001379/0.1316, allocations: 0.556 MB / 468.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009882/0.1326, allocations: 371.2 kB / 468.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001493/0.1341, allocations: 1.306 MB / 470 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009769/0.1351, allocations: 0.7363 MB / 470.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007811/0.1359, allocations: 0.5488 MB / 471.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009884/0.1369, allocations: 0.6893 MB / 472 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001299/0.1371, allocations: 100 kB / 472.1 MB, free: 9.535 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008795/0.1379, allocations: 0.511 MB / 472.6 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004725/0.1384, allocations: 474.9 kB / 473 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005855/0.139, allocations: 0.5173 MB / 473.5 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001505/0.1405, allocations: 1.461 MB / 475 MB, free: 6.574 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1406, allocations: 0 / 475 MB, free: 6.574 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1406, allocations: 0 / 475 MB, free: 6.574 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.306e-05/0.1406, allocations: 4 kB / 475 MB, free: 6.57 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.00284/0.1434, allocations: 1.344 MB / 476.4 MB, free: 5.176 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.1435, allocations: 15.83 kB / 476.4 MB, free: 5.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008064/0.1443, allocations: 147.7 kB / 476.5 MB, free: 5.016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001496/0.1458, allocations: 0.6827 MB / 477.2 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002333/0.1461, allocations: 175.6 kB / 477.4 MB, free: 4.105 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002167/0.1463, allocations: 95.83 kB / 477.5 MB, free: 4.012 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002282/0.1486, allocations: 1.358 MB / 478.8 MB, free: 2.586 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.102e-05/0.1486, allocations: 3.938 kB / 478.8 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.02e-05/0.1487, allocations: 39.98 kB / 478.9 MB, free: 2.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001528/0.1489, allocations: 61.97 kB / 478.9 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002258/0.1511, allocations: 1.292 MB / 480.2 MB, free: 1.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007027/0.1582, allocations: 4.888 MB / 485.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002284/0.1605, allocations: 1.145 MB / 486.3 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001098/0.1616, allocations: 0.6193 MB / 486.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.48e-05/0.1617, allocations: 12.55 kB / 486.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.925e-05/0.1618, allocations: 43.05 kB / 486.9 MB, free: 10.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 5.53e-06/0.1618, allocations: 0 / 486.9 MB, free: 10.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.005947/0.1677, allocations: 3.182 MB / 490.1 MB, free: 6.996 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.55e-05/0.1678, allocations: 89.64 kB / 490.2 MB, free: 6.891 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005849/0.1684, allocations: 465.9 kB / 490.6 MB, free: 6.422 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.705e-05/0.1685, allocations: 37.7 kB / 490.7 MB, free: 6.379 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000283/0.1688, allocations: 395.3 kB / 491.1 MB, free: 5.984 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002162/0.169, allocations: 256.3 kB / 491.3 MB, free: 5.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002464/0.1692, allocations: 146.6 kB / 491.5 MB, free: 5.582 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.1694, allocations: 374.8 kB / 491.8 MB, free: 5.207 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000863/0.1703, allocations: 0.4938 MB / 492.3 MB, free: 4.715 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001009/0.1713, allocations: 0.6881 MB / 493 MB, free: 3.949 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001901/0.1732, allocations: 1.216 MB / 494.2 MB, free: 2.656 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.1732, allocations: 3.938 kB / 494.2 MB, free: 2.652 MB / 366.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.004193/0.1774, allocations: 1.978 MB / 496.2 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.1775, allocations: 18.69 kB / 496.2 MB, free: 0.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003646/0.1811, allocations: 1.717 MB / 497.9 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001739/0.1829, allocations: 0.6495 MB / 498.6 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006041/0.1835, allocations: 151.8 kB / 498.7 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01107/0.1946, allocations: 7.397 MB / 0.4943 GB, free: 6.398 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007262/0.1954, allocations: 75.91 kB / 0.4944 GB, free: 6.324 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.927e-05/0.1954, allocations: 35.98 kB / 0.4944 GB, free: 6.289 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (76): * Single equations (assignments): 73 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,16)} Notification: Performance of prepare postOptimizeDAE: time 0.00047/0.1959, allocations: 317.6 kB / 0.4947 GB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001442/0.1961, allocations: 59.25 kB / 0.4947 GB, free: 5.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002272/0.1983, allocations: 1.301 MB / 0.496 GB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.221e-05/0.1984, allocations: 15.98 kB / 0.496 GB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.1984, allocations: 0 / 0.496 GB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.1984, allocations: 3.938 kB / 0.496 GB, free: 4.559 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003874/0.2023, allocations: 2.409 MB / 0.4984 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.2023, allocations: 3.938 kB / 0.4984 GB, free: 2.059 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002498/0.2048, allocations: 0.4955 MB / 0.4989 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001071/0.2049, allocations: 32.84 kB / 0.4989 GB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.5e-05/0.205, allocations: 27.97 kB / 0.4989 GB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001223/0.2062, allocations: 1.626 MB / 0.5005 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2062, allocations: 0 / 0.5005 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00321/0.2095, allocations: 2.013 MB / 0.5025 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001948/0.2097, allocations: 132.4 kB / 0.5026 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.455e-05/0.2098, allocations: 15.98 kB / 0.5026 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005041/0.2103, allocations: 55.92 kB / 0.5027 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001692/0.2105, allocations: 68.41 kB / 0.5027 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.205e-05/0.2105, allocations: 16 kB / 0.5028 GB, free: 13.38 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000394/0.2109, allocations: 326.8 kB / 0.5031 GB, free: 13.06 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2109, allocations: 0 / 0.5031 GB, free: 13.06 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00101/0.212, allocations: 232 kB / 0.5033 GB, free: 12.83 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * 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 (67): * Single equations (assignments): 64 * Array equations: 1 * Algorithm blocks: 0 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002415/0.2122, allocations: 131 kB / 0.5034 GB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002839/0.2151, allocations: 1.578 MB / 0.505 GB, free: 11.09 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.2151, allocations: 448 / 0.505 GB, free: 11.09 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002525/0.2176, allocations: 1.005 MB / 0.5059 GB, free: 10.06 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008821/0.2185, allocations: 157 kB / 0.5061 GB, free: 9.918 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004232/0.2228, allocations: 2.261 MB / 0.5083 GB, free: 7.613 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007119/0.2235, allocations: 1.079 MB / 0.5094 GB, free: 6.504 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005622/0.2241, allocations: 209.5 kB / 0.5096 GB, free: 6.297 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002142/0.2243, allocations: 55.38 kB / 0.5096 GB, free: 6.242 MB / 398.1 MB Notification: Performance of SimCode: time 9.02e-07/0.2243, allocations: 0 / 0.5096 GB, free: 6.242 MB / 398.1 MB Notification: Performance of Templates: time 0.2519/0.4762, allocations: 13.43 MB / 0.5227 GB, free: 70.49 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Rectifier.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches