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.0006874/0.0006875, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.0007226/0.0007226, allocations: 175.4 kB / 17.56 MB, free: 6.18 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.168/1.168, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1594/0.1594, allocations: 38.09 MB / 330.8 MB, free: 8.523 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002904/0.0002904, allocations: 11.98 kB / 400.7 MB, free: 34.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09111/0.09142, allocations: 59.16 MB / 459.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.006228/0.09768, allocations: 6.948 MB / 466.8 MB, free: 56 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002833/0.1005, allocations: 1.738 MB / 468.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006186/0.1012, allocations: 39.75 kB / 468.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005047/0.1017, allocations: 131.1 kB / 468.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000897/0.1026, allocations: 398.3 kB / 469.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000476/0.1031, allocations: 191.7 kB / 469.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001506/0.1046, allocations: 1.668 MB / 471 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000378/0.105, allocations: 283 kB / 471.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006329/0.1057, allocations: 386.3 kB / 471.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000811/0.1065, allocations: 0.5294 MB / 472.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001019/0.1066, allocations: 32 kB / 472.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001459/0.1068, allocations: 32 kB / 472.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002735/0.107, allocations: 279.2 kB / 472.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004072/0.1075, allocations: 360 kB / 472.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006625/0.1081, allocations: 0.8174 MB / 473.7 MB, free: 9.195 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1081, allocations: 11.94 kB / 473.7 MB, free: 9.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1081, allocations: 3.938 kB / 473.7 MB, free: 9.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.36e-05/0.1082, allocations: 0 / 473.7 MB, free: 9.18 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.001738/0.1099, allocations: 0.9179 MB / 474.6 MB, free: 8.207 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.11, allocations: 12.03 kB / 474.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001564/0.1101, allocations: 72.09 kB / 474.7 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008315/0.111, allocations: 0.5534 MB / 475.2 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001553/0.1111, allocations: 124.8 kB / 475.4 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.399e-05/0.1112, allocations: 63.98 kB / 475.4 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001213/0.1125, allocations: 0.7928 MB / 476.2 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.1125, allocations: 0 / 476.2 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.216e-05/0.1125, allocations: 20 kB / 476.2 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001107/0.1127, allocations: 40.97 kB / 476.3 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001258/0.1139, allocations: 0.7259 MB / 477 MB, free: 5.719 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.003676/0.1176, allocations: 2.755 MB / 479.8 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001697/0.1193, allocations: 0.9258 MB / 480.7 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005632/0.1199, allocations: 345.3 kB / 481 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.574e-05/0.1199, allocations: 4 kB / 481 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.12, allocations: 42.48 kB / 481.1 MB, free: 1.477 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 2.254e-06/0.12, allocations: 0 / 481.1 MB, free: 1.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.003538/0.1235, allocations: 2.015 MB / 483.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.473e-05/0.1236, allocations: 89.03 kB / 483.2 MB, free: 15.24 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005323/0.1241, allocations: 429.8 kB / 483.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.933e-05/0.1242, allocations: 33.7 kB / 483.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002278/0.1244, allocations: 316.2 kB / 483.9 MB, free: 14.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.1245, allocations: 134.1 kB / 484.1 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.608e-05/0.1246, allocations: 45.69 kB / 484.1 MB, free: 14.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.1248, allocations: 362.8 kB / 484.5 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005152/0.1253, allocations: 253 kB / 484.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005513/0.1259, allocations: 366.3 kB / 485.1 MB, free: 13.26 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009893/0.1269, allocations: 0.6095 MB / 485.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.1269, allocations: 0 / 485.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001378/0.1283, allocations: 0.8233 MB / 486.5 MB, free: 11.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.1283, allocations: 8 kB / 486.5 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.1283, allocations: 4 kB / 486.5 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002545/0.1286, allocations: 77.66 kB / 486.6 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001458/0.13, allocations: 375.5 kB / 487 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005532/0.1356, allocations: 6.162 MB / 493.1 MB, free: 4.598 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003884/0.136, allocations: 44.12 kB / 493.2 MB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.018e-05/0.136, allocations: 27.88 kB / 493.2 MB, free: 4.527 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.0003198/0.1364, allocations: 233.6 kB / 493.4 MB, free: 4.289 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.47e-05/0.1364, allocations: 51.38 kB / 493.5 MB, free: 4.238 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001367/0.1378, allocations: 0.7689 MB / 494.2 MB, free: 3.441 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.1378, allocations: 4 kB / 494.2 MB, free: 3.438 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1378, allocations: 4 kB / 494.2 MB, free: 3.434 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1379, allocations: 4 kB / 494.2 MB, free: 3.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00238/0.1402, allocations: 1.537 MB / 495.8 MB, free: 1.801 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.1403, allocations: 4.062 kB / 495.8 MB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001603/0.1419, allocations: 399.6 kB / 496.2 MB, free: 1.406 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002391/0.1421, allocations: 93.56 kB / 496.3 MB, free: 1.309 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.186e-05/0.1422, allocations: 12 kB / 496.3 MB, free: 1.297 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001838/0.144, allocations: 2.884 MB / 499.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.144, allocations: 11.91 kB / 499.2 MB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001733/0.1458, allocations: 1.168 MB / 0.4886 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.035e-05/0.1459, allocations: 116.5 kB / 0.4887 GB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.041e-05/0.1459, allocations: 16 kB / 0.4887 GB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003156/0.1463, allocations: 40 kB / 0.4888 GB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.522e-05/0.1464, allocations: 35.94 kB / 0.4888 GB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.522e-05/0.1464, allocations: 16 kB / 0.4888 GB, free: 12.67 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000273/0.1467, allocations: 291.1 kB / 0.4891 GB, free: 12.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1467, allocations: 0 / 0.4891 GB, free: 12.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005538/0.1472, allocations: 140 kB / 0.4892 GB, free: 12.25 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.0001195/0.1474, allocations: 113.4 kB / 0.4894 GB, free: 12.13 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002486/0.1499, allocations: 1.118 MB / 0.4904 GB, free: 10.99 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.1499, allocations: 0 / 0.4904 GB, free: 10.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0019/0.1518, allocations: 0.8261 MB / 0.4912 GB, free: 10.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007413/0.1525, allocations: 133.8 kB / 0.4914 GB, free: 10.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002098/0.1546, allocations: 1.773 MB / 0.4931 GB, free: 8.199 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004584/0.1551, allocations: 0.9445 MB / 0.494 GB, free: 7.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002818/0.1554, allocations: 100.5 kB / 0.4941 GB, free: 7.133 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.1555, allocations: 43.42 kB / 0.4942 GB, free: 7.09 MB / 382.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1555, allocations: 0 / 0.4942 GB, free: 7.09 MB / 382.1 MB Notification: Performance of Templates: time 0.1752/0.3307, allocations: 7.205 MB / 0.5012 GB, free: 55.31 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.makefile Environment - environmentSimulation: (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 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches