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.00118/0.00118, allocations: 109.7 kB / 17.06 MB, free: 5.824 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.001317/0.001317, allocations: 191 kB / 18 MB, free: 4.977 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.503/1.503, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1921/0.1921, allocations: 38.05 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 67.89 kB / 458.2 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.474/0.4753, allocations: 58.06 MB / 0.5041 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.006126/0.4815, allocations: 4.909 MB / 0.5089 GB, free: 4.281 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002435/0.484, allocations: 1.303 MB / 0.5102 GB, free: 3.363 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002925/0.4843, allocations: 13.94 kB / 0.5102 GB, free: 3.359 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004778/0.4848, allocations: 123.9 kB / 0.5103 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007168/0.4855, allocations: 329.2 kB / 0.5106 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004458/0.486, allocations: 163.6 kB / 0.5108 GB, free: 3.043 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007446/0.4868, allocations: 0.6931 MB / 0.5115 GB, free: 2.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002478/0.487, allocations: 161.7 kB / 0.5116 GB, free: 2.691 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004414/0.4875, allocations: 316.1 kB / 0.5119 GB, free: 2.559 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000717/0.4882, allocations: 436 kB / 0.5123 GB, free: 2.426 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.188e-05/0.4883, allocations: 44.91 kB / 0.5124 GB, free: 2.426 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.4884, allocations: 47.91 kB / 0.5124 GB, free: 2.426 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004013/0.4888, allocations: 240.7 kB / 0.5126 GB, free: 2.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003606/0.4892, allocations: 276.3 kB / 0.5129 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008106/0.49, allocations: 0.6106 MB / 0.5135 GB, free: 1.969 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.49, allocations: 0 / 0.5135 GB, free: 1.969 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.4901, allocations: 0 / 0.5135 GB, free: 1.969 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.4901, allocations: 1.062 kB / 0.5135 GB, free: 1.969 MB / 382.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.001982/0.4921, allocations: 0.9501 MB / 0.5144 GB, free: 1.363 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.4921, allocations: 14.55 kB / 0.5144 GB, free: 1.359 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001227/0.4922, allocations: 57.72 kB / 0.5145 GB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00121/0.4935, allocations: 0.6143 MB / 0.5151 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.596e-05/0.4935, allocations: 26.69 kB / 0.5151 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000112/0.4936, allocations: 40.97 kB / 0.5152 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.4947, allocations: 0.545 MB / 0.5157 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.4947, allocations: 5.094 kB / 0.5157 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.009e-05/0.4948, allocations: 15.25 kB / 0.5157 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00039/0.4952, allocations: 89.94 kB / 0.5158 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007742/0.496, allocations: 358.9 kB / 0.5161 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003446/0.4994, allocations: 2.06 MB / 0.5182 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009064/0.5003, allocations: 375.8 kB / 0.5185 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005442/0.5009, allocations: 294 kB / 0.5188 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.613e-05/0.501, allocations: 6.469 kB / 0.5188 GB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.501, allocations: 34.22 kB / 0.5188 GB, free: 15.06 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 1.854e-06/0.501, allocations: 0 / 0.5188 GB, free: 15.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.004986/0.506, allocations: 2.54 MB / 0.5213 GB, free: 13.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.057e-05/0.5061, allocations: 81.89 kB / 0.5214 GB, free: 13.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004806/0.5066, allocations: 385 kB / 0.5218 GB, free: 13.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.364e-05/0.5066, allocations: 35.08 kB / 0.5218 GB, free: 13.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000207/0.5069, allocations: 245.7 kB / 0.522 GB, free: 13.06 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.507, allocations: 134.1 kB / 0.5222 GB, free: 12.96 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001775/0.5072, allocations: 108.3 kB / 0.5223 GB, free: 12.9 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001852/0.5074, allocations: 357.9 kB / 0.5226 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004146/0.5078, allocations: 243.1 kB / 0.5228 GB, free: 12.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004957/0.5083, allocations: 364.2 kB / 0.5232 GB, free: 12.3 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009203/0.5092, allocations: 0.6085 MB / 0.5238 GB, free: 12.01 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.5092, allocations: 0 / 0.5238 GB, free: 12.01 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002078/0.5113, allocations: 1.011 MB / 0.5248 GB, free: 11.69 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.5114, allocations: 9.719 kB / 0.5248 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.5114, allocations: 4.828 kB / 0.5248 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001165/0.5126, allocations: 407.2 kB / 0.5252 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003048/0.5129, allocations: 83.17 kB / 0.5252 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006096/0.519, allocations: 5.142 MB / 0.5303 GB, free: 7.949 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005216/0.5195, allocations: 38.69 kB / 0.5303 GB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.095e-05/0.5196, allocations: 18.77 kB / 0.5303 GB, free: 7.941 MB / 398.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.0004185/0.52, allocations: 207 kB / 0.5305 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.617e-05/0.5201, allocations: 43.56 kB / 0.5306 GB, free: 7.758 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001662/0.5218, allocations: 0.8304 MB / 0.5314 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.5218, allocations: 5 kB / 0.5314 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.341e-06/0.5218, allocations: 2.281 kB / 0.5314 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.5218, allocations: 2.016 kB / 0.5314 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00239/0.5242, allocations: 1.415 MB / 0.5328 GB, free: 6.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.5243, allocations: 0 / 0.5328 GB, free: 6.559 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001721/0.5244, allocations: 40.98 kB / 0.5328 GB, free: 6.547 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001243/0.5257, allocations: 449.2 kB / 0.5332 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.93e-05/0.5258, allocations: 38.22 kB / 0.5333 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00599/0.5318, allocations: 6.714 MB / 0.5398 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.5318, allocations: 0 / 0.5398 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002214/0.534, allocations: 1.124 MB / 0.5409 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002021/0.5342, allocations: 116.3 kB / 0.541 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.09e-05/0.5343, allocations: 29.7 kB / 0.5411 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002928/0.5346, allocations: 40.44 kB / 0.5411 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.5348, allocations: 35.2 kB / 0.5411 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.614e-05/0.5348, allocations: 11.52 kB / 0.5411 GB, free: 15.22 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003975/0.5352, allocations: 270.4 kB / 0.5414 GB, free: 15.05 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5352, allocations: 0 / 0.5414 GB, free: 15.05 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000874/0.5361, allocations: 158.6 kB / 0.5416 GB, free: 15.04 MB / 414.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.0002302/0.5363, allocations: 119 kB / 0.5417 GB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001935/0.5383, allocations: 0.9073 MB / 0.5425 GB, free: 14.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.5383, allocations: 1.375 kB / 0.5426 GB, free: 14.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001579/0.5399, allocations: 1.083 MB / 0.5436 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007266/0.5406, allocations: 123.6 kB / 0.5437 GB, free: 13.4 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003177/0.5438, allocations: 1.815 MB / 0.5455 GB, free: 12.15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006684/0.5445, allocations: 0.8803 MB / 0.5464 GB, free: 11.37 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002719/0.5448, allocations: 74.8 kB / 0.5464 GB, free: 11.33 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.852e-05/0.5449, allocations: 31.94 kB / 0.5465 GB, free: 11.32 MB / 414.1 MB Notification: Performance of SimCode: time 9.32e-07/0.5449, allocations: 1.5 kB / 0.5465 GB, free: 11.32 MB / 414.1 MB Notification: Performance of Templates: time 0.01525/0.5601, allocations: 7.711 MB / 0.554 GB, free: 3.797 MB / 414.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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Line.mat","/var/lib/jenkins/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