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.001464/0.001464, allocations: 98.03 kB / 16.5 MB, free: 6.695 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.001651/0.001651, allocations: 194 kB / 17.42 MB, free: 6.09 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.477/1.477, allocations: 222.9 MB / 241.1 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1865/0.1865, allocations: 38.04 MB / 329.3 MB, free: 9.078 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 62.11 kB / 398.1 MB, free: 34.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1253, allocations: 58.07 MB / 456.2 MB, free: 8.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.007663/0.133, allocations: 4.511 MB / 460.7 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.1345, allocations: 0.9778 MB / 461.7 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001711/0.1347, allocations: 19.88 kB / 461.7 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001831/0.1349, allocations: 31.7 kB / 461.7 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003925/0.1353, allocations: 147.3 kB / 461.9 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001722/0.1355, allocations: 75.86 kB / 461.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004918/0.136, allocations: 0.518 MB / 462.4 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002154/0.1362, allocations: 105.5 kB / 462.5 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002044/0.1365, allocations: 155.2 kB / 462.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003227/0.1368, allocations: 183.3 kB / 462.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.062e-05/0.1368, allocations: 16 kB / 462.9 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.684e-05/0.1369, allocations: 12 kB / 462.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.137, allocations: 83.67 kB / 463 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001506/0.1372, allocations: 131.3 kB / 463.1 MB, free: 1.547 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002884/0.1375, allocations: 278.9 kB / 463.4 MB, free: 1.273 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1375, allocations: 0 / 463.4 MB, free: 1.273 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.61e-07/0.1375, allocations: 4 kB / 463.4 MB, free: 1.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.531e-06/0.1375, allocations: 0 / 463.4 MB, free: 1.27 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.001083/0.1386, allocations: 0.5894 MB / 464 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.1386, allocations: 12.03 kB / 464 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.838e-05/0.1387, allocations: 28.56 kB / 464 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000515/0.1392, allocations: 326.9 kB / 464.3 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.1393, allocations: 20.81 kB / 464.4 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/0.1394, allocations: 40.11 kB / 464.4 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004333/0.1398, allocations: 290 kB / 464.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.1399, allocations: 0 / 464.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.668e-05/0.1399, allocations: 12 kB / 464.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.1399, allocations: 4 kB / 464.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003075/0.1402, allocations: 187.8 kB / 464.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001544/0.1418, allocations: 1.276 MB / 466.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002948/0.1421, allocations: 119.8 kB / 466.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.798e-05/0.1422, allocations: 50.62 kB / 466.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.1422, allocations: 0 / 466.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.1422, allocations: 46.5 kB / 466.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.062e-06/0.1422, allocations: 0 / 466.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009581/0.1432, allocations: 0.5232 MB / 466.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.394e-05/0.1433, allocations: 102.8 kB / 467 MB, free: 13.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002329/0.1435, allocations: 238.7 kB / 467.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.1435, allocations: 33.95 kB / 467.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.1437, allocations: 199.5 kB / 467.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.293e-05/0.1437, allocations: 39.45 kB / 467.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.487e-05/0.1438, allocations: 41.7 kB / 467.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.1439, allocations: 338.8 kB / 467.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.69e-05/0.144, allocations: 47.84 kB / 467.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/0.1442, allocations: 141.3 kB / 468 MB, free: 12.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002352/0.1444, allocations: 183.8 kB / 468.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1444, allocations: 4 kB / 468.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003992/0.1448, allocations: 230.2 kB / 468.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.1448, allocations: 16.02 kB / 468.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.1449, allocations: 0 / 468.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001231/0.145, allocations: 28.84 kB / 468.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003467/0.1453, allocations: 63.83 kB / 468.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.1454, allocations: 4 kB / 468.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001217/0.1455, allocations: 8 kB / 468.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.575e-05/0.1455, allocations: 8 kB / 468.6 MB, free: 11.6 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.0001432/0.1457, allocations: 153.8 kB / 468.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.116e-05/0.1457, allocations: 23.72 kB / 468.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002819/0.146, allocations: 155.2 kB / 468.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.146, allocations: 7.938 kB / 468.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.146, allocations: 0 / 468.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.146, allocations: 0 / 468.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003691/0.1464, allocations: 285.5 kB / 469.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1464, allocations: 0 / 469.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001667/0.1466, allocations: 31.97 kB / 469.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.97e-06/0.1466, allocations: 8 kB / 469.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.1466, allocations: 0 / 469.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.282e-06/0.1466, allocations: 11.88 kB / 469.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.1467, allocations: 4 kB / 469.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000384/0.147, allocations: 359.3 kB / 469.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.804e-05/0.1471, allocations: 92.86 kB / 469.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.434e-05/0.1472, allocations: 12.05 kB / 469.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001527/0.1473, allocations: 7.938 kB / 469.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.604e-05/0.1474, allocations: 7.984 kB / 469.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.096e-05/0.1474, allocations: 4 kB / 469.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001539/0.1475, allocations: 170 kB / 469.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1475, allocations: 3.938 kB / 469.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003429/0.1479, allocations: 52 kB / 469.9 MB, free: 10.14 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.0001096/0.148, allocations: 95.25 kB / 470 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003532/0.1484, allocations: 217.7 kB / 470.2 MB, free: 9.805 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.1484, allocations: 0 / 470.2 MB, free: 9.805 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.24e-05/0.1485, allocations: 51.86 kB / 470.3 MB, free: 9.754 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005233/0.149, allocations: 60.28 kB / 470.4 MB, free: 9.699 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001004/0.15, allocations: 0.6959 MB / 471.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.1504, allocations: 0.7716 MB / 471.8 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001221/0.1505, allocations: 30.22 kB / 471.9 MB, free: 8.137 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.714e-05/0.1506, allocations: 23.44 kB / 471.9 MB, free: 8.113 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1506, allocations: 0 / 471.9 MB, free: 8.113 MB / 350.1 MB Notification: Performance of Templates: time 0.005211/0.1558, allocations: 2.094 MB / 474 MB, free: 6.043 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