Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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.LoadDC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=7406,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=7406,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 115 kB / 16.63 MB, free: 6.812 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.00185/0.00185, allocations: 186 kB / 17.55 MB, free: 5.934 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.378/1.378, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1735/0.1735, allocations: 38.04 MB / 329.4 MB, free: 9.047 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 67.3 kB / 398.3 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1024, allocations: 58.07 MB / 456.4 MB, free: 8.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.006348/0.1088, allocations: 4.511 MB / 460.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001863/0.1107, allocations: 0.9777 MB / 461.8 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002124/0.1109, allocations: 19.88 kB / 461.9 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002116/0.1112, allocations: 35.7 kB / 461.9 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000457/0.1117, allocations: 151.3 kB / 462 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001892/0.1119, allocations: 75.88 kB / 462.1 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004033/0.1123, allocations: 386.7 kB / 462.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002348/0.1125, allocations: 126.2 kB / 462.6 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002293/0.1128, allocations: 171.2 kB / 462.8 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003158/0.1131, allocations: 191.3 kB / 463 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.807e-05/0.1132, allocations: 20 kB / 463 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.356e-05/0.1132, allocations: 20 kB / 463 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.1133, allocations: 91.67 kB / 463.1 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001538/0.1135, allocations: 139.2 kB / 463.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003354/0.1138, allocations: 286.9 kB / 463.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.1138, allocations: 0 / 463.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1139, allocations: 0 / 463.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.926e-06/0.1139, allocations: 0 / 463.5 MB, free: 1.238 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001204/0.1151, allocations: 0.5932 MB / 464.1 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/0.1151, allocations: 15.89 kB / 464.1 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001078/0.1153, allocations: 28.56 kB / 464.2 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005152/0.1158, allocations: 330.9 kB / 464.5 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.847e-05/0.1158, allocations: 12.81 kB / 464.5 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/0.116, allocations: 40.12 kB / 464.5 MB, free: 144 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004817/0.1164, allocations: 290 kB / 464.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.1165, allocations: 0 / 464.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.706e-05/0.1165, allocations: 8 kB / 464.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.1165, allocations: 8 kB / 464.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003161/0.1168, allocations: 191.8 kB / 465 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001586/0.1184, allocations: 1.28 MB / 466.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003049/0.1187, allocations: 123.8 kB / 466.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.622e-05/0.1188, allocations: 46.62 kB / 466.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.1189, allocations: 0 / 466.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.91e-05/0.1189, allocations: 38.5 kB / 466.5 MB, free: 14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.233e-06/0.1189, allocations: 0 / 466.5 MB, free: 14 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009306/0.1198, allocations: 0.531 MB / 467 MB, free: 13.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.999e-05/0.1199, allocations: 102.9 kB / 467.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002315/0.1202, allocations: 246.7 kB / 467.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.1202, allocations: 25.7 kB / 467.4 MB, free: 13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001236/0.1203, allocations: 199.5 kB / 467.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.1204, allocations: 43.45 kB / 467.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.203e-05/0.1204, allocations: 41.95 kB / 467.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.1206, allocations: 338.8 kB / 468 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.175e-05/0.1207, allocations: 39.98 kB / 468 MB, free: 12.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001199/0.1208, allocations: 138.6 kB / 468.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002256/0.121, allocations: 187.8 kB / 468.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.121, allocations: 4 kB / 468.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003928/0.1214, allocations: 229.8 kB / 468.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.1215, allocations: 8 kB / 468.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.1215, allocations: 0 / 468.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001504/0.1216, allocations: 33.25 kB / 468.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003291/0.122, allocations: 71.81 kB / 468.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.122, allocations: 4 kB / 468.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.1221, allocations: 8 kB / 468.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/0.1221, allocations: 8 kB / 468.7 MB, free: 11.56 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001749/0.1223, allocations: 149.8 kB / 468.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.205e-05/0.1224, allocations: 23.72 kB / 468.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002796/0.1227, allocations: 155.3 kB / 469 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-05/0.1227, allocations: 7.938 kB / 469.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1227, allocations: 0 / 469.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.1227, allocations: 0 / 469.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000367/0.1231, allocations: 285.5 kB / 469.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.1231, allocations: 0 / 469.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001707/0.1233, allocations: 27.97 kB / 469.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.1233, allocations: 4 kB / 469.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.1233, allocations: 4 kB / 469.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-06/0.1233, allocations: 7.938 kB / 469.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1233, allocations: 7.938 kB / 469.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004031/0.1237, allocations: 363.3 kB / 469.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.481e-05/0.1238, allocations: 92.86 kB / 469.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.682e-05/0.1238, allocations: 11.98 kB / 469.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001485/0.124, allocations: 7.938 kB / 469.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.35e-05/0.124, allocations: 12.06 kB / 469.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.1241, allocations: 7.984 kB / 469.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000147/0.1242, allocations: 170 kB / 470 MB, free: 10.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1242, allocations: 0 / 470 MB, free: 10.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003449/0.1246, allocations: 48 kB / 470.1 MB, free: 10.1 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * 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 (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000105/0.1247, allocations: 99.19 kB / 470.2 MB, free: 9.996 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003408/0.125, allocations: 229 kB / 470.4 MB, free: 9.754 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.125, allocations: 3.938 kB / 470.4 MB, free: 9.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.905e-05/0.1251, allocations: 47.92 kB / 470.4 MB, free: 9.703 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005167/0.1256, allocations: 51.11 kB / 470.5 MB, free: 9.656 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001007/0.1267, allocations: 0.7024 MB / 471.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.127, allocations: 0.7673 MB / 472 MB, free: 8.117 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001093/0.1271, allocations: 34.28 kB / 472 MB, free: 8.086 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.525e-05/0.1271, allocations: 19.44 kB / 472 MB, free: 8.066 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1272, allocations: 0 / 472 MB, free: 8.066 MB / 350.1 MB Notification: Performance of Templates: time 0.005078/0.1322, allocations: 2.191 MB / 474.2 MB, free: 5.898 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches