Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002229/0.002229, allocations: 113.3 kB / 17.69 MB, free: 5.309 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.002734/0.002734, allocations: 192 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.635/1.635, allocations: 222.9 MB / 242.3 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2077/0.2077, allocations: 38.05 MB / 330.5 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 59.66 kB / 400.3 MB, free: 33.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1723/0.1737, allocations: 58.06 MB / 458.3 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.00912/0.1828, allocations: 6.34 MB / 464.7 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003026/0.1859, allocations: 1.441 MB / 466.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003519/0.1863, allocations: 27.81 kB / 466.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006316/0.187, allocations: 158.8 kB / 466.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000996/0.188, allocations: 421.9 kB / 466.7 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005473/0.1885, allocations: 211.6 kB / 466.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001323/0.1899, allocations: 1.114 MB / 468 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005179/0.1904, allocations: 368.6 kB / 468.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006682/0.1911, allocations: 470.2 kB / 468.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008477/0.1919, allocations: 0.5334 MB / 469.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001021/0.1921, allocations: 68 kB / 469.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001302/0.1922, allocations: 64 kB / 469.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003523/0.1926, allocations: 323.1 kB / 469.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004519/0.193, allocations: 370.3 kB / 470.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001021/0.194, allocations: 0.8721 MB / 471 MB, free: 10.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.1941, allocations: 0 / 471 MB, free: 10.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1941, allocations: 8 kB / 471.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.129e-05/0.1941, allocations: 0 / 471.1 MB, free: 10.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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002165/0.1963, allocations: 1.015 MB / 472.1 MB, free: 9.496 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.1963, allocations: 8.031 kB / 472.1 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001474/0.1965, allocations: 76.09 kB / 472.2 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001159/0.1976, allocations: 0.5924 MB / 472.7 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001895/0.1978, allocations: 116.8 kB / 472.9 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.198, allocations: 55.98 kB / 472.9 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/0.1993, allocations: 0.785 MB / 473.7 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.1994, allocations: 0 / 473.7 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.379e-05/0.1994, allocations: 24 kB / 473.7 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001294/0.1996, allocations: 48.84 kB / 473.8 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001348/0.2009, allocations: 0.6869 MB / 474.5 MB, free: 7.023 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004398/0.2054, allocations: 2.689 MB / 477.1 MB, free: 4.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001789/0.2072, allocations: 0.8711 MB / 478 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006134/0.2078, allocations: 331.1 kB / 478.3 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.375e-05/0.2079, allocations: 7.984 kB / 478.3 MB, free: 2.969 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.432e-05/0.2079, allocations: 42.5 kB / 478.4 MB, free: 2.918 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 2.575e-06/0.2079, allocations: 0 / 478.4 MB, free: 2.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.004166/0.2121, allocations: 1.937 MB / 480.3 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.456e-05/0.2122, allocations: 85.05 kB / 480.4 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005237/0.2127, allocations: 429.8 kB / 480.8 MB, free: 344 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.747e-05/0.2128, allocations: 29.7 kB / 480.9 MB, free: 308 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002869/0.2131, allocations: 320.4 kB / 481.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/0.2132, allocations: 134.1 kB / 481.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001601/0.2134, allocations: 90.16 kB / 481.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002193/0.2136, allocations: 358.8 kB / 481.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004744/0.2141, allocations: 237 kB / 482 MB, free: 15.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005553/0.2147, allocations: 350.3 kB / 482.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001025/0.2157, allocations: 0.5783 MB / 482.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2157, allocations: 0 / 482.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001389/0.2171, allocations: 0.7842 MB / 483.7 MB, free: 13.33 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/0.2171, allocations: 8 kB / 483.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.2172, allocations: 0 / 483.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003058/0.2175, allocations: 85.81 kB / 483.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/0.2188, allocations: 283.6 kB / 484 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006667/0.2255, allocations: 6.52 MB / 490.6 MB, free: 5.879 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005175/0.226, allocations: 35.95 kB / 490.6 MB, free: 5.844 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.335e-05/0.2261, allocations: 20 kB / 490.6 MB, free: 5.824 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004669/0.2265, allocations: 245.6 kB / 490.9 MB, free: 5.574 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.493e-05/0.2266, allocations: 47.44 kB / 490.9 MB, free: 5.527 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001399/0.228, allocations: 0.7299 MB / 491.6 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.2281, allocations: 8 kB / 491.6 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.2281, allocations: 0 / 491.6 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.876e-06/0.2281, allocations: 3.984 kB / 491.6 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0027/0.2308, allocations: 1.502 MB / 493.2 MB, free: 3.164 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.2308, allocations: 0 / 493.2 MB, free: 3.164 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001468/0.2323, allocations: 299.6 kB / 493.4 MB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002964/0.2326, allocations: 85.62 kB / 493.5 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.488e-05/0.2327, allocations: 11.98 kB / 493.5 MB, free: 2.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002862/0.2355, allocations: 3.165 MB / 496.7 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2355, allocations: 0 / 496.7 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002045/0.2376, allocations: 1.123 MB / 497.8 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001991/0.2378, allocations: 124.5 kB / 497.9 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.507e-05/0.2379, allocations: 12 kB / 498 MB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003239/0.2382, allocations: 31.95 kB / 498 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001541/0.2384, allocations: 39.83 kB / 498 MB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.77e-05/0.2384, allocations: 16 kB / 498 MB, free: 13.91 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004197/0.2389, allocations: 295.1 kB / 498.3 MB, free: 13.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2389, allocations: 4 kB / 498.3 MB, free: 13.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008072/0.2397, allocations: 140 kB / 498.5 MB, free: 13.48 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,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 (39): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002073/0.2399, allocations: 107.2 kB / 498.6 MB, free: 13.37 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002523/0.2424, allocations: 0.989 MB / 499.6 MB, free: 12.35 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.2424, allocations: 0 / 499.6 MB, free: 12.35 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001859/0.2443, allocations: 0.7351 MB / 0.4886 GB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008723/0.2452, allocations: 147.3 kB / 0.4887 GB, free: 11.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002907/0.2481, allocations: 1.417 MB / 0.4901 GB, free: 10.01 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007044/0.2488, allocations: 0.9448 MB / 0.491 GB, free: 9.039 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003699/0.2492, allocations: 100.5 kB / 0.4911 GB, free: 8.938 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001362/0.2494, allocations: 35.44 kB / 0.4912 GB, free: 8.902 MB / 382.1 MB Notification: Performance of SimCode: time 1.092e-06/0.2494, allocations: 0 / 0.4912 GB, free: 8.902 MB / 382.1 MB Notification: Performance of Templates: time 0.01596/0.2653, allocations: 7.676 MB / 0.4987 GB, free: 1.297 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches