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.001648/0.001654, 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.0023/0.002301, 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.354/1.354, 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.1761/0.1761, allocations: 38.04 MB / 330.5 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 57.92 kB / 400.3 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09289/0.0941, allocations: 58.06 MB / 458.3 MB, free: 7.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.008142/0.1023, allocations: 6.336 MB / 464.7 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002341/0.1046, allocations: 1.457 MB / 466.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002568/0.1049, allocations: 23.88 kB / 466.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004939/0.1054, allocations: 150.8 kB / 466.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007653/0.1062, allocations: 421.9 kB / 466.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004333/0.1067, allocations: 219.6 kB / 466.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001147/0.1078, allocations: 1.114 MB / 468 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004426/0.1083, allocations: 356.6 kB / 468.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006184/0.1089, allocations: 470.2 kB / 468.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007808/0.1097, allocations: 0.5373 MB / 469.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.983e-05/0.1098, allocations: 64 kB / 469.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001157/0.1099, allocations: 68 kB / 469.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003633/0.1103, allocations: 315.2 kB / 469.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003748/0.1107, allocations: 374.3 kB / 470.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007765/0.1115, allocations: 0.8682 MB / 471 MB, free: 10.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.319e-06/0.1115, allocations: 0 / 471 MB, free: 10.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1115, allocations: 0 / 471 MB, free: 10.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.1115, allocations: 0 / 471 MB, free: 10.55 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.001942/0.1135, allocations: 1.027 MB / 472.1 MB, free: 9.465 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.1135, allocations: 8.031 kB / 472.1 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/0.1136, allocations: 76.09 kB / 472.2 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001191/0.1148, allocations: 0.5885 MB / 472.7 MB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001488/0.115, allocations: 120.8 kB / 472.9 MB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.743e-05/0.1151, allocations: 63.92 kB / 472.9 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001312/0.1164, allocations: 0.7772 MB / 473.7 MB, free: 7.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.1165, allocations: 0 / 473.7 MB, free: 7.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.863e-05/0.1165, allocations: 24 kB / 473.7 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001059/0.1166, allocations: 36.97 kB / 473.8 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001301/0.1179, allocations: 0.6947 MB / 474.5 MB, free: 6.996 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.004153/0.1221, allocations: 2.685 MB / 477.1 MB, free: 4.207 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001762/0.1239, allocations: 0.8788 MB / 478 MB, free: 3.273 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005671/0.1245, allocations: 325.5 kB / 478.3 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.125e-05/0.1245, allocations: 4 kB / 478.3 MB, free: 2.945 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.1246, allocations: 46.55 kB / 478.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.984e-06/0.1246, allocations: 0 / 478.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.003684/0.1283, allocations: 1.933 MB / 480.3 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.827e-05/0.1283, allocations: 92.92 kB / 480.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004525/0.1288, allocations: 433.8 kB / 480.8 MB, free: 308 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.04e-05/0.1288, allocations: 29.7 kB / 480.9 MB, free: 272 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002569/0.1291, allocations: 324.2 kB / 481.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.1292, allocations: 126.1 kB / 481.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/0.1294, allocations: 90.16 kB / 481.4 MB, free: 15.72 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.1295, allocations: 358.8 kB / 481.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004843/0.13, allocations: 237 kB / 482 MB, free: 15.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005276/0.1306, allocations: 354.3 kB / 482.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009384/0.1315, allocations: 0.5705 MB / 482.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1315, allocations: 7.938 kB / 482.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001299/0.1328, allocations: 0.7882 MB / 483.7 MB, free: 13.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.1329, allocations: 8.094 kB / 483.7 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.1329, allocations: 4 kB / 483.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002451/0.1331, allocations: 73.67 kB / 483.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001366/0.1345, allocations: 291.5 kB / 484.1 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005661/0.1402, allocations: 6.512 MB / 490.6 MB, free: 5.852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003837/0.1406, allocations: 39.89 kB / 490.6 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.754e-05/0.1406, allocations: 16 kB / 490.6 MB, free: 5.797 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.0003106/0.141, allocations: 249.7 kB / 490.9 MB, free: 5.543 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.833e-05/0.141, allocations: 43.44 kB / 490.9 MB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001315/0.1424, allocations: 0.7299 MB / 491.6 MB, free: 4.742 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.1424, allocations: 8 kB / 491.6 MB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.1424, allocations: 0 / 491.6 MB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.1424, allocations: 0 / 491.6 MB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002411/0.1448, allocations: 1.498 MB / 493.1 MB, free: 3.145 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.1448, allocations: 4 kB / 493.1 MB, free: 3.141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001515/0.1464, allocations: 299.6 kB / 493.4 MB, free: 2.848 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002552/0.1466, allocations: 93.56 kB / 493.5 MB, free: 2.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.179e-05/0.1467, allocations: 8 kB / 493.5 MB, free: 2.742 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002174/0.1489, allocations: 3.161 MB / 496.7 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.1489, allocations: 4 kB / 496.7 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001748/0.1506, allocations: 1.123 MB / 497.8 MB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/0.1508, allocations: 120.5 kB / 497.9 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.73e-05/0.1508, allocations: 12 kB / 498 MB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003177/0.1512, allocations: 32 kB / 498 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.1513, allocations: 43.89 kB / 498 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.089e-05/0.1513, allocations: 11.98 kB / 498 MB, free: 13.88 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003015/0.1516, allocations: 295.1 kB / 498.3 MB, free: 13.6 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1516, allocations: 0 / 498.3 MB, free: 13.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000629/0.1523, allocations: 140 kB / 498.5 MB, free: 13.46 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.0001372/0.1524, allocations: 103.2 kB / 498.6 MB, free: 13.35 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002402/0.1548, allocations: 1.005 MB / 499.6 MB, free: 12.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.1548, allocations: 0 / 499.6 MB, free: 12.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001767/0.1566, allocations: 0.7235 MB / 0.4886 GB, free: 11.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007147/0.1573, allocations: 150.9 kB / 0.4887 GB, free: 11.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002134/0.1595, allocations: 1.414 MB / 0.4901 GB, free: 9.988 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005094/0.16, allocations: 0.9448 MB / 0.491 GB, free: 9.016 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002683/0.1603, allocations: 100.5 kB / 0.4911 GB, free: 8.914 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.1604, allocations: 39.44 kB / 0.4912 GB, free: 8.875 MB / 382.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1604, allocations: 0 / 0.4912 GB, free: 8.875 MB / 382.1 MB Notification: Performance of Templates: time 0.01321/0.1736, allocations: 7.684 MB / 0.4987 GB, free: 1.266 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 gbode -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