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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 214.2 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.445/1.445, allocations: 230.6 MB / 258.3 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1862/0.1862, allocations: 38.56 MB / 353.2 MB, free: 12.3 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3703,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=3703,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002147/0.002147, allocations: 71.89 kB / 493.7 MB, free: 4.191 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3334, allocations: 62.46 MB / 0.5432 GB, free: 428 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.005692/0.3391, allocations: 4.019 MB / 0.5471 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001575/0.3407, allocations: 0.8335 MB / 0.5479 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000145/0.3408, allocations: 15.88 kB / 0.5479 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001856/0.341, allocations: 47.42 kB / 0.548 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004619/0.3415, allocations: 171.3 kB / 0.5481 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001994/0.3417, allocations: 82.28 kB / 0.5482 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004411/0.3421, allocations: 400.4 kB / 0.5486 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001878/0.3423, allocations: 79.3 kB / 0.5487 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003256/0.3426, allocations: 186.2 kB / 0.5488 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000315/0.3429, allocations: 190.6 kB / 0.549 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.441e-05/0.343, allocations: 21.03 kB / 0.549 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.276e-05/0.343, allocations: 20.22 kB / 0.5491 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.3431, allocations: 88.81 kB / 0.5491 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001413/0.3433, allocations: 111.2 kB / 0.5493 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003668/0.3436, allocations: 294.5 kB / 0.5495 GB, free: 11.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.3437, allocations: 1.031 kB / 0.5495 GB, free: 11.61 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3437, allocations: 0 / 0.5495 GB, free: 11.61 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.3437, allocations: 0 / 0.5495 GB, free: 11.61 MB / 398.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.001059/0.3447, allocations: 0.53 MB / 0.5501 GB, free: 11.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.3448, allocations: 12.83 kB / 0.5501 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.01e-05/0.3448, allocations: 32.62 kB / 0.5501 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005775/0.3454, allocations: 279.4 kB / 0.5504 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.19e-05/0.3454, allocations: 17.97 kB / 0.5504 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001303/0.3456, allocations: 38.33 kB / 0.5504 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004466/0.346, allocations: 296.8 kB / 0.5507 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.346, allocations: 9.844 kB / 0.5507 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.346, allocations: 9.312 kB / 0.5507 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.346, allocations: 6.094 kB / 0.5507 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003142/0.3464, allocations: 178.9 kB / 0.5509 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001577/0.3479, allocations: 1.149 MB / 0.552 GB, free: 9.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002989/0.3482, allocations: 118.2 kB / 0.5521 GB, free: 9.395 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.385e-05/0.3483, allocations: 44.97 kB / 0.5522 GB, free: 9.355 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.519e-05/0.3483, allocations: 2.25 kB / 0.5522 GB, free: 9.355 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.737e-05/0.3484, allocations: 36.81 kB / 0.5522 GB, free: 9.312 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.522e-06/0.3484, allocations: 0 / 0.5522 GB, free: 9.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009265/0.3493, allocations: 464.8 kB / 0.5527 GB, free: 8.957 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.456e-05/0.3494, allocations: 109.3 kB / 0.5528 GB, free: 8.828 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002569/0.3496, allocations: 249 kB / 0.553 GB, free: 8.648 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.568e-05/0.3496, allocations: 30.45 kB / 0.553 GB, free: 8.613 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001511/0.3498, allocations: 201.3 kB / 0.5532 GB, free: 8.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.24e-05/0.3498, allocations: 41.56 kB / 0.5533 GB, free: 8.395 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.361e-05/0.3499, allocations: 47.94 kB / 0.5533 GB, free: 8.355 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.3501, allocations: 336.6 kB / 0.5536 GB, free: 8.023 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.863e-05/0.3502, allocations: 36.55 kB / 0.5537 GB, free: 8.008 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/0.3503, allocations: 129 kB / 0.5538 GB, free: 7.871 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002588/0.3506, allocations: 204.2 kB / 0.554 GB, free: 7.684 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3506, allocations: 0 / 0.554 GB, free: 7.684 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004243/0.351, allocations: 226.8 kB / 0.5542 GB, free: 7.551 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.351, allocations: 6.875 kB / 0.5542 GB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.351, allocations: 3.406 kB / 0.5542 GB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001255/0.3511, allocations: 30.69 kB / 0.5542 GB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003416/0.3515, allocations: 63.25 kB / 0.5543 GB, free: 7.512 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.552e-05/0.3515, allocations: 16.47 kB / 0.5543 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.3516, allocations: 4.594 kB / 0.5543 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/0.3517, allocations: 12.62 kB / 0.5543 GB, free: 7.496 MB / 398.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.0001579/0.3518, allocations: 146 kB / 0.5545 GB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.31e-05/0.3519, allocations: 22.61 kB / 0.5545 GB, free: 7.348 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002832/0.3522, allocations: 145.5 kB / 0.5546 GB, free: 7.246 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.3522, allocations: 2.25 kB / 0.5546 GB, free: 7.246 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.3522, allocations: 5.125 kB / 0.5546 GB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.3522, allocations: 9.109 kB / 0.5546 GB, free: 7.234 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000326/0.3525, allocations: 200.2 kB / 0.5548 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.3525, allocations: 9.109 kB / 0.5548 GB, free: 7.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001618/0.3527, allocations: 29.8 kB / 0.5549 GB, free: 7.039 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.3527, allocations: 2.125 kB / 0.5549 GB, free: 7.039 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.3527, allocations: 5.188 kB / 0.5549 GB, free: 7.035 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.3527, allocations: 2.219 kB / 0.5549 GB, free: 7.035 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.3527, allocations: 0 / 0.5549 GB, free: 7.035 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004153/0.3531, allocations: 374.1 kB / 0.5552 GB, free: 6.734 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.479e-05/0.3532, allocations: 21.45 kB / 0.5553 GB, free: 6.719 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.377e-05/0.3532, allocations: 10.39 kB / 0.5553 GB, free: 6.711 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000152/0.3533, allocations: 5.344 kB / 0.5553 GB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.519e-05/0.3534, allocations: 12.52 kB / 0.5553 GB, free: 6.699 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/0.3534, allocations: 3.438 kB / 0.5553 GB, free: 6.699 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001689/0.3535, allocations: 168.8 kB / 0.5554 GB, free: 6.578 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3535, allocations: 0 / 0.5554 GB, free: 6.578 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003619/0.3539, allocations: 44.88 kB / 0.5555 GB, free: 6.574 MB / 398.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.0001092/0.354, allocations: 105.4 kB / 0.5556 GB, free: 6.477 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00031/0.3543, allocations: 126.2 kB / 0.5557 GB, free: 6.414 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3543, allocations: 1.188 kB / 0.5557 GB, free: 6.414 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.425e-05/0.3544, allocations: 46.55 kB / 0.5558 GB, free: 6.395 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005302/0.355, allocations: 60.36 kB / 0.5558 GB, free: 6.367 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001079/0.356, allocations: 0.641 MB / 0.5564 GB, free: 5.883 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001746/0.3562, allocations: 162.3 kB / 0.5566 GB, free: 5.762 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.296e-05/0.3563, allocations: 24.95 kB / 0.5566 GB, free: 5.75 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3563, allocations: 1.062 kB / 0.5566 GB, free: 5.75 MB / 398.1 MB Notification: Performance of Templates: time 0.006133/0.3624, allocations: 3.637 MB / 0.5602 GB, free: 2.262 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.967511802911758]