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.001861/0.001861, allocations: 111.4 kB / 17.29 MB, free: 6.059 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.002574/0.002574, allocations: 197.3 kB / 18.21 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.358/2.358, allocations: 222.9 MB / 241.9 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3538/0.3538, allocations: 38.03 MB / 330.1 MB, free: 8.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002717/0.002717, allocations: 65.27 kB / 398.9 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1628/0.1655, allocations: 58.05 MB / 457 MB, free: 8.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.01518/0.1808, allocations: 5.762 MB / 462.8 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005203/0.186, allocations: 1.539 MB / 464.3 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001152/0.1873, allocations: 35.75 kB / 464.3 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009487/0.1882, allocations: 115.3 kB / 464.5 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001701/0.19, allocations: 302.7 kB / 464.7 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008769/0.1909, allocations: 135.8 kB / 464.9 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001621/0.1926, allocations: 0.6971 MB / 465.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004788/0.1931, allocations: 160.1 kB / 465.7 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000967/0.1941, allocations: 306.7 kB / 466 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001479/0.1956, allocations: 458.7 kB / 466.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002361/0.1959, allocations: 48 kB / 466.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002669/0.1962, allocations: 44 kB / 466.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005629/0.1968, allocations: 243.4 kB / 466.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007506/0.1975, allocations: 282.7 kB / 467.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001091/0.1987, allocations: 487 kB / 467.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.181e-05/0.1987, allocations: 4 kB / 467.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1987, allocations: 4 kB / 467.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.991e-05/0.1987, allocations: 0 / 467.6 MB, free: 13.81 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.004322/0.2031, allocations: 0.9478 MB / 468.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.403e-05/0.2032, allocations: 15.89 kB / 468.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002805/0.2035, allocations: 56.28 kB / 468.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002382/0.2059, allocations: 0.5799 MB / 469.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.947e-05/0.206, allocations: 36.62 kB / 469.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002209/0.2062, allocations: 40 kB / 469.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001736/0.208, allocations: 0.5517 MB / 469.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.549e-05/0.2081, allocations: 3.938 kB / 469.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.894e-05/0.2082, allocations: 15.98 kB / 469.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006881/0.2089, allocations: 92.53 kB / 469.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001108/0.21, allocations: 358.3 kB / 470.3 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005581/0.2156, allocations: 2.054 MB / 472.3 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/0.2171, allocations: 385.2 kB / 472.7 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.2182, allocations: 317.6 kB / 473 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.798e-05/0.2183, allocations: 7.938 kB / 473 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.897e-05/0.2184, allocations: 42.5 kB / 473 MB, free: 8.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 4.629e-06/0.2184, allocations: 4 kB / 473 MB, free: 8.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.009001/0.2274, allocations: 2.533 MB / 475.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.322e-05/0.2276, allocations: 89.22 kB / 475.7 MB, free: 5.242 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000888/0.2285, allocations: 377.6 kB / 476 MB, free: 4.863 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.266e-05/0.2286, allocations: 37.7 kB / 476.1 MB, free: 4.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003247/0.2289, allocations: 248.2 kB / 476.3 MB, free: 4.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002537/0.2292, allocations: 142.1 kB / 476.5 MB, free: 4.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003053/0.2295, allocations: 94.25 kB / 476.5 MB, free: 4.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002591/0.2298, allocations: 362.7 kB / 476.9 MB, free: 3.969 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007581/0.2306, allocations: 245 kB / 477.1 MB, free: 3.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009107/0.2315, allocations: 374.6 kB / 477.5 MB, free: 3.316 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001721/0.2333, allocations: 0.6157 MB / 478.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-05/0.2333, allocations: 4 kB / 478.1 MB, free: 2.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.003794/0.2371, allocations: 1.006 MB / 479.1 MB, free: 1.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.691e-05/0.2372, allocations: 8.344 kB / 479.1 MB, free: 1.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.061e-05/0.2372, allocations: 4 kB / 479.1 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00222/0.2395, allocations: 417.2 kB / 479.5 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006865/0.2402, allocations: 75.89 kB / 479.6 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009916/0.2501, allocations: 5.151 MB / 484.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007564/0.251, allocations: 39.95 kB / 484.8 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/0.2511, allocations: 23.98 kB / 484.8 MB, free: 11.64 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.0005587/0.2517, allocations: 195.3 kB / 485 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002115/0.2519, allocations: 47.44 kB / 485.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00291/0.2549, allocations: 0.8349 MB / 485.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.2549, allocations: 4 kB / 485.9 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/0.2549, allocations: 4 kB / 485.9 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.255, allocations: 7.984 kB / 485.9 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004244/0.2592, allocations: 1.414 MB / 487.3 MB, free: 9.023 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.287e-06/0.2593, allocations: 0 / 487.3 MB, free: 9.023 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004174/0.2597, allocations: 40 kB / 487.4 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002543/0.2623, allocations: 453.2 kB / 487.8 MB, free: 8.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000131/0.2624, allocations: 35.91 kB / 487.9 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01098/0.2735, allocations: 6.71 MB / 494.6 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.2735, allocations: 0 / 494.6 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00333/0.2768, allocations: 1.136 MB / 495.7 MB, free: 24 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002901/0.2772, allocations: 112.6 kB / 495.8 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000201/0.2774, allocations: 31.98 kB / 495.8 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006177/0.278, allocations: 39.88 kB / 495.9 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002191/0.2783, allocations: 39.94 kB / 495.9 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.409e-05/0.2784, allocations: 15.98 kB / 495.9 MB, free: 15.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005504/0.279, allocations: 259.2 kB / 496.2 MB, free: 15.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.51e-07/0.279, allocations: 0 / 496.2 MB, free: 15.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001301/0.2803, allocations: 163.9 kB / 496.3 MB, free: 15.36 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.0003047/0.2806, allocations: 123.1 kB / 496.5 MB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003426/0.2841, allocations: 0.9777 MB / 497.4 MB, free: 14.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.2841, allocations: 0 / 497.4 MB, free: 14.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002908/0.287, allocations: 1.087 MB / 498.5 MB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001524/0.2886, allocations: 135 kB / 498.7 MB, free: 12.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006223/0.2948, allocations: 2.044 MB / 0.489 GB, free: 10.81 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009115/0.2958, allocations: 0.8781 MB / 0.4898 GB, free: 9.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002071/0.296, allocations: 39.44 kB / 0.4899 GB, free: 9.871 MB / 382.1 MB Notification: Performance of SimCode: time 1.693e-06/0.2961, allocations: 0 / 0.4899 GB, free: 9.871 MB / 382.1 MB Notification: Performance of Templates: time 0.03205/0.3281, allocations: 13.25 MB / 0.5028 GB, free: 12.63 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