Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.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.Line,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Line,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001564/0.001568, allocations: 104.2 kB / 17.59 MB, free: 5.43 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.001877/0.001877, allocations: 187.3 kB / 18.51 MB, free: 4.508 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.478/1.478, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1745/0.1745, allocations: 38.04 MB / 330.4 MB, free: 8.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 62.67 kB / 399.5 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08774/0.08911, allocations: 58.06 MB / 457.5 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.006228/0.09537, allocations: 4.905 MB / 462.4 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002059/0.09745, allocations: 1.301 MB / 463.7 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002933/0.09777, allocations: 15.88 kB / 463.8 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004536/0.09824, allocations: 135 kB / 463.9 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007452/0.09903, allocations: 326.5 kB / 464.2 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000405/0.09944, allocations: 151.7 kB / 464.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007382/0.1002, allocations: 0.6971 MB / 465.1 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002452/0.1005, allocations: 156.1 kB / 465.2 MB, free: 368 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000451/0.1009, allocations: 310.8 kB / 465.5 MB, free: 56 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006512/0.1016, allocations: 430.9 kB / 465.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001176/0.1017, allocations: 44 kB / 466 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001343/0.1018, allocations: 48 kB / 466 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002457/0.1021, allocations: 243.4 kB / 466.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003238/0.1024, allocations: 286.6 kB / 466.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005404/0.103, allocations: 0.5956 MB / 467.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.103, allocations: 4 kB / 467.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.103, allocations: 0 / 467.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.498e-05/0.103, allocations: 0 / 467.1 MB, free: 14.42 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001991/0.105, allocations: 0.944 MB / 468.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.1051, allocations: 15.89 kB / 468.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.1052, allocations: 56.38 kB / 468.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.1063, allocations: 0.5916 MB / 468.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.563e-05/0.1063, allocations: 28.66 kB / 468.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.362e-05/0.1064, allocations: 43.91 kB / 468.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007641/0.1072, allocations: 0.5518 MB / 469.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.1072, allocations: 0 / 469.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.391e-05/0.1072, allocations: 16 kB / 469.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000321/0.1076, allocations: 80.53 kB / 469.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005593/0.1081, allocations: 362.3 kB / 469.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002723/0.1109, allocations: 2.062 MB / 471.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008215/0.1117, allocations: 381.2 kB / 472.3 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005781/0.1123, allocations: 317.6 kB / 472.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/0.1123, allocations: 11.94 kB / 472.6 MB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.662e-05/0.1124, allocations: 30.56 kB / 472.6 MB, free: 8.715 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.723e-06/0.1124, allocations: 0 / 472.6 MB, free: 8.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.004391/0.1168, allocations: 2.542 MB / 475.1 MB, free: 5.965 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.1168, allocations: 85.23 kB / 475.2 MB, free: 5.863 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003776/0.1172, allocations: 377.6 kB / 475.6 MB, free: 5.488 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.082e-05/0.1173, allocations: 41.69 kB / 475.6 MB, free: 5.441 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/0.1174, allocations: 252.1 kB / 475.9 MB, free: 5.188 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001032/0.1175, allocations: 130.2 kB / 476 MB, free: 5.059 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001504/0.1177, allocations: 102.2 kB / 476.1 MB, free: 4.953 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.1178, allocations: 366.7 kB / 476.5 MB, free: 4.586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003507/0.1182, allocations: 245 kB / 476.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004108/0.1186, allocations: 362.7 kB / 477.1 MB, free: 3.945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000778/0.1194, allocations: 0.6196 MB / 477.7 MB, free: 3.281 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1194, allocations: 0 / 477.7 MB, free: 3.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001701/0.1211, allocations: 1.013 MB / 478.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.1211, allocations: 12.38 kB / 478.7 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.1212, allocations: 8 kB / 478.7 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009806/0.1221, allocations: 409.3 kB / 479.1 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003142/0.1225, allocations: 87.83 kB / 479.2 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004994/0.1275, allocations: 5.135 MB / 484.3 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003591/0.1279, allocations: 43.94 kB / 484.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.999e-05/0.1279, allocations: 16 kB / 484.4 MB, free: 12.27 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 (48): * Single equations (assignments): 46 * Array equations: 0 * 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): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000243/0.1282, allocations: 209.7 kB / 484.6 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.883e-05/0.1282, allocations: 39.53 kB / 484.6 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001378/0.1296, allocations: 0.8349 MB / 485.5 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.1297, allocations: 4 kB / 485.5 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.1297, allocations: 4 kB / 485.5 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.1297, allocations: 3.984 kB / 485.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001986/0.1317, allocations: 1.41 MB / 486.9 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.1317, allocations: 8.031 kB / 486.9 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001889/0.1319, allocations: 39.91 kB / 486.9 MB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001104/0.133, allocations: 445.3 kB / 487.4 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.843e-05/0.1331, allocations: 39.91 kB / 487.4 MB, free: 9.109 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005017/0.1381, allocations: 6.714 MB / 494.1 MB, free: 1.828 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.1381, allocations: 3.984 kB / 494.1 MB, free: 1.824 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001589/0.1397, allocations: 1.124 MB / 495.3 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000111/0.1398, allocations: 116.5 kB / 495.4 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.889e-05/0.1399, allocations: 31.98 kB / 495.4 MB, free: 500 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002962/0.1402, allocations: 39.94 kB / 495.4 MB, free: 460 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.313e-05/0.1403, allocations: 39.94 kB / 495.5 MB, free: 420 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-05/0.1404, allocations: 15.98 kB / 495.5 MB, free: 404 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002474/0.1406, allocations: 263.1 kB / 495.8 MB, free: 140 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1406, allocations: 0 / 495.8 MB, free: 140 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006227/0.1412, allocations: 160 kB / 495.9 MB, free: 15.98 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4]) * 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 (29): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (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.0001466/0.1414, allocations: 119.4 kB / 496 MB, free: 15.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001645/0.143, allocations: 0.9778 MB / 497 MB, free: 14.85 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1431, allocations: 3.938 kB / 497 MB, free: 14.85 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001406/0.1445, allocations: 1.086 MB / 498.1 MB, free: 13.64 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006611/0.1452, allocations: 128.1 kB / 498.2 MB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002664/0.1478, allocations: 1.884 MB / 0.4884 GB, free: 11.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004202/0.1483, allocations: 0.8781 MB / 0.4892 GB, free: 10.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.205e-05/0.1483, allocations: 39.42 kB / 0.4893 GB, free: 10.66 MB / 382.1 MB Notification: Performance of SimCode: time 2.304e-06/0.1484, allocations: 0 / 0.4893 GB, free: 10.66 MB / 382.1 MB Notification: Performance of Templates: time 0.01503/0.1634, allocations: 13.25 MB / 0.5022 GB, free: 13.41 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Line.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches