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.001474/0.001475, 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.001645/0.001645, 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.361/1.361, 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.17/0.17, allocations: 38.05 MB / 329.7 MB, free: 8.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 62.23 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1161, allocations: 58.07 MB / 456.9 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Rectifier): time 0.008649/0.1247, allocations: 6.753 MB / 463.6 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003951/0.1287, allocations: 2.15 MB / 465.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005865/0.1293, allocations: 27.88 kB / 465.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00175/0.1311, allocations: 0.5132 MB / 466.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001616/0.1327, allocations: 0.5444 MB / 466.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001027/0.1338, allocations: 383.2 kB / 467.2 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00179/0.1356, allocations: 1.306 MB / 468.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001132/0.1367, allocations: 0.7246 MB / 469.3 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001045/0.1378, allocations: 0.5372 MB / 469.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001122/0.1389, allocations: 0.6932 MB / 470.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001477/0.1391, allocations: 100 kB / 470.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009329/0.14, allocations: 0.5461 MB / 471.1 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004435/0.1405, allocations: 474.8 kB / 471.6 MB, free: 9.258 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005238/0.141, allocations: 0.5095 MB / 472.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001334/0.1424, allocations: 1.453 MB / 473.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1424, allocations: 0 / 473.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1424, allocations: 0 / 473.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.263e-05/0.1424, allocations: 0 / 473.6 MB, free: 7.289 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.002619/0.145, allocations: 1.344 MB / 474.9 MB, free: 5.895 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.1451, allocations: 15.89 kB / 474.9 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007534/0.1458, allocations: 139.7 kB / 475.1 MB, free: 5.742 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001159/0.147, allocations: 0.6593 MB / 475.7 MB, free: 5.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002278/0.1473, allocations: 167.6 kB / 475.9 MB, free: 4.863 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002165/0.1475, allocations: 103.8 kB / 476 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00213/0.1496, allocations: 1.354 MB / 477.3 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.748e-05/0.1497, allocations: 7.938 kB / 477.3 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.722e-05/0.1498, allocations: 35.98 kB / 477.4 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000158/0.1499, allocations: 65.97 kB / 477.4 MB, free: 3.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002331/0.1523, allocations: 1.292 MB / 478.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006816/0.1591, allocations: 4.92 MB / 483.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002182/0.1613, allocations: 1.137 MB / 484.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001122/0.1624, allocations: 0.6232 MB / 485.4 MB, free: 11.06 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.661e-05/0.1625, allocations: 8.562 kB / 485.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.462e-05/0.1626, allocations: 43.12 kB / 485.5 MB, free: 11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 3.296e-06/0.1626, allocations: 3.938 kB / 485.5 MB, free: 11 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.006007/0.1686, allocations: 3.178 MB / 488.7 MB, free: 7.723 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.966e-05/0.1687, allocations: 85.67 kB / 488.7 MB, free: 7.621 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005177/0.1692, allocations: 469.9 kB / 489.2 MB, free: 7.148 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.777e-05/0.1693, allocations: 37.64 kB / 489.2 MB, free: 7.105 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000267/0.1695, allocations: 399.3 kB / 489.6 MB, free: 6.707 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002678/0.1698, allocations: 252.3 kB / 489.9 MB, free: 6.457 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002488/0.1701, allocations: 146.6 kB / 490 MB, free: 6.309 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003198/0.1704, allocations: 378.8 kB / 490.4 MB, free: 5.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009385/0.1713, allocations: 0.4938 MB / 490.9 MB, free: 5.438 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001055/0.1724, allocations: 0.6764 MB / 491.6 MB, free: 4.684 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002045/0.1745, allocations: 1.228 MB / 492.8 MB, free: 3.379 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.1745, allocations: 3.938 kB / 492.8 MB, free: 3.375 MB / 366.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.004433/0.1789, allocations: 1.982 MB / 494.8 MB, free: 1.359 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.338e-05/0.179, allocations: 8.531 kB / 494.8 MB, free: 1.352 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003904/0.1829, allocations: 1.714 MB / 496.5 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001829/0.1847, allocations: 0.6598 MB / 497.1 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006258/0.1854, allocations: 151.8 kB / 497.3 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01149/0.1969, allocations: 7.424 MB / 0.4929 GB, free: 7.102 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007271/0.1976, allocations: 71.91 kB / 0.493 GB, free: 7.031 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-05/0.1977, allocations: 28 kB / 0.493 GB, free: 7.004 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.0004698/0.1982, allocations: 313.5 kB / 0.4933 GB, free: 6.688 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001595/0.1983, allocations: 63.25 kB / 0.4933 GB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002315/0.2007, allocations: 1.301 MB / 0.4946 GB, free: 5.297 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.141e-05/0.2007, allocations: 16 kB / 0.4946 GB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.2007, allocations: 0 / 0.4946 GB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.2007, allocations: 3.984 kB / 0.4946 GB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003934/0.2047, allocations: 2.418 MB / 0.497 GB, free: 2.766 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.2047, allocations: 3.938 kB / 0.497 GB, free: 2.762 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002769/0.2075, allocations: 0.4916 MB / 0.4975 GB, free: 2.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001201/0.2076, allocations: 36.83 kB / 0.4975 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.845e-05/0.2077, allocations: 12 kB / 0.4975 GB, free: 2.219 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001119/0.2088, allocations: 1.634 MB / 0.4991 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.2088, allocations: 4.031 kB / 0.4991 GB, free: 456 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003164/0.212, allocations: 2.008 MB / 0.5011 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001415/0.2121, allocations: 132.3 kB / 0.5012 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.2122, allocations: 16 kB / 0.5012 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005222/0.2128, allocations: 59.91 kB / 0.5013 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/0.2129, allocations: 64.47 kB / 0.5013 GB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.868e-05/0.213, allocations: 20 kB / 0.5014 GB, free: 14.08 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003815/0.2134, allocations: 326.7 kB / 0.5017 GB, free: 13.77 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2134, allocations: 0 / 0.5017 GB, free: 13.77 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009346/0.2143, allocations: 232 kB / 0.5019 GB, free: 13.54 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.0002247/0.2146, allocations: 131.2 kB / 0.502 GB, free: 13.4 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003273/0.2178, allocations: 1.84 MB / 0.5038 GB, free: 11.53 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.2179, allocations: 4 kB / 0.5038 GB, free: 11.53 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002778/0.2206, allocations: 0.9978 MB / 0.5048 GB, free: 10.51 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009811/0.2216, allocations: 153.8 kB / 0.5049 GB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004267/0.2259, allocations: 2.299 MB / 0.5072 GB, free: 8.02 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007288/0.2267, allocations: 1.071 MB / 0.5082 GB, free: 6.922 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000586/0.2273, allocations: 209.5 kB / 0.5084 GB, free: 6.715 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001961/0.2275, allocations: 59.42 kB / 0.5085 GB, free: 6.656 MB / 398.1 MB Notification: Performance of SimCode: time 9.82e-07/0.2275, allocations: 0 / 0.5085 GB, free: 6.656 MB / 398.1 MB Notification: Performance of Templates: time 0.2076/0.4351, allocations: 13.34 MB / 0.5215 GB, free: 70.22 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Rectifier.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches