Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.001737/0.001737, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002744/0.002744, allocations: 211 kB / 23.73 MB, free: 4.387 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.609/1.609, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.1855/0.1855, allocations: 38.56 MB / 352.5 MB, free: 12.32 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.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=740,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=740,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source") [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.002155/0.002155, allocations: 70.39 kB / 493 MB, free: 4.215 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4582/0.4603, allocations: 62.46 MB / 0.5424 GB, free: 440 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.006696/0.467, allocations: 3.874 MB / 0.5462 GB, free: 13.46 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001822/0.4689, allocations: 0.8484 MB / 0.547 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001855/0.469, allocations: 19.06 kB / 0.5471 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002233/0.4693, allocations: 44.12 kB / 0.5471 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005719/0.4698, allocations: 169.3 kB / 0.5473 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002501/0.4701, allocations: 86.02 kB / 0.5473 GB, free: 12.54 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005393/0.4706, allocations: 373.3 kB / 0.5477 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002135/0.4708, allocations: 65.66 kB / 0.5478 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003712/0.4712, allocations: 174.5 kB / 0.5479 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003417/0.4715, allocations: 168.4 kB / 0.5481 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.18e-05/0.4716, allocations: 16.38 kB / 0.5481 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.729e-05/0.4716, allocations: 21.47 kB / 0.5481 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000137/0.4718, allocations: 82.7 kB / 0.5482 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00016/0.4719, allocations: 99.31 kB / 0.5483 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004215/0.4724, allocations: 263.2 kB / 0.5485 GB, free: 11.82 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.4724, allocations: 4 kB / 0.5486 GB, free: 11.81 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4724, allocations: 0 / 0.5486 GB, free: 11.81 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.4724, allocations: 0 / 0.5486 GB, free: 11.81 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001057/0.4734, allocations: 0.4894 MB / 0.549 GB, free: 11.39 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.4735, allocations: 13.33 kB / 0.549 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.4736, allocations: 33.84 kB / 0.5491 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00069/0.4743, allocations: 267.4 kB / 0.5493 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.085e-05/0.4743, allocations: 20.81 kB / 0.5493 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.472e-05/0.4744, allocations: 16.59 kB / 0.5494 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005474/0.4749, allocations: 277.9 kB / 0.5496 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.4749, allocations: 1.219 kB / 0.5496 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.523e-05/0.4749, allocations: 10.19 kB / 0.5496 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.4749, allocations: 5.219 kB / 0.5496 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002781/0.4752, allocations: 160 kB / 0.5498 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001626/0.4769, allocations: 1.064 MB / 0.5508 GB, free: 9.828 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001612/0.477, allocations: 76.45 kB / 0.5509 GB, free: 9.758 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.013e-05/0.4771, allocations: 28.84 kB / 0.5509 GB, free: 9.734 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.503e-05/0.4771, allocations: 1.375 kB / 0.5509 GB, free: 9.734 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.568e-05/0.4771, allocations: 40 kB / 0.551 GB, free: 9.688 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.213e-06/0.4771, allocations: 0 / 0.551 GB, free: 9.688 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007764/0.4779, allocations: 341.5 kB / 0.5513 GB, free: 9.406 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.882e-05/0.478, allocations: 82.48 kB / 0.5514 GB, free: 9.309 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002579/0.4782, allocations: 236.2 kB / 0.5516 GB, free: 9.141 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.379e-05/0.4783, allocations: 29.7 kB / 0.5516 GB, free: 9.105 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001552/0.4784, allocations: 188.3 kB / 0.5518 GB, free: 8.934 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.562e-05/0.4785, allocations: 31.77 kB / 0.5518 GB, free: 8.906 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.712e-05/0.4785, allocations: 43.55 kB / 0.5519 GB, free: 8.871 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.4787, allocations: 336.1 kB / 0.5522 GB, free: 8.539 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.438e-05/0.4788, allocations: 23.31 kB / 0.5522 GB, free: 8.531 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/0.4789, allocations: 123.4 kB / 0.5523 GB, free: 8.391 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002312/0.4791, allocations: 165.1 kB / 0.5525 GB, free: 8.227 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.4791, allocations: 1.125 kB / 0.5525 GB, free: 8.227 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002937/0.4794, allocations: 185.7 kB / 0.5527 GB, free: 8.117 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.4795, allocations: 10.22 kB / 0.5527 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.4795, allocations: 2.906 kB / 0.5527 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.489e-05/0.4795, allocations: 8.156 kB / 0.5527 GB, free: 8.113 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002375/0.4797, allocations: 44.92 kB / 0.5527 GB, free: 8.102 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.636e-05/0.4797, allocations: 16.28 kB / 0.5528 GB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.4798, allocations: 8.375 kB / 0.5528 GB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.4799, allocations: 12.09 kB / 0.5528 GB, free: 8.082 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 (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000166/0.48, allocations: 150.4 kB / 0.5529 GB, free: 7.941 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.321e-05/0.4801, allocations: 25.05 kB / 0.5529 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002699/0.4803, allocations: 89.52 kB / 0.553 GB, free: 7.859 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.4804, allocations: 5.125 kB / 0.553 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/0.4804, allocations: 1.062 kB / 0.553 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.4804, allocations: 0 / 0.553 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004968/0.4809, allocations: 349.8 kB / 0.5534 GB, free: 7.539 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.4809, allocations: 1.156 kB / 0.5534 GB, free: 7.539 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.914e-05/0.481, allocations: 17.2 kB / 0.5534 GB, free: 7.535 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.147e-06/0.481, allocations: 5.094 kB / 0.5534 GB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.481, allocations: 3.156 kB / 0.5534 GB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.481, allocations: 0 / 0.5534 GB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.481, allocations: 1.719 kB / 0.5534 GB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003473/0.4813, allocations: 232.6 kB / 0.5536 GB, free: 7.332 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.761e-05/0.4814, allocations: 22.06 kB / 0.5536 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.396e-05/0.4814, allocations: 6.203 kB / 0.5536 GB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.708e-05/0.4815, allocations: 9.219 kB / 0.5537 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.991e-05/0.4815, allocations: 6.203 kB / 0.5537 GB, free: 7.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.185e-06/0.4815, allocations: 3.312 kB / 0.5537 GB, free: 7.301 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002002/0.4817, allocations: 163.8 kB / 0.5538 GB, free: 7.184 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4817, allocations: 0 / 0.5538 GB, free: 7.184 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003106/0.4821, allocations: 35.22 kB / 0.5539 GB, free: 7.184 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (9): * Single equations (assignments): 8 * 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.0001347/0.4822, allocations: 100.4 kB / 0.554 GB, free: 7.09 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002215/0.4824, allocations: 91.67 kB / 0.554 GB, free: 7.047 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4824, allocations: 0 / 0.554 GB, free: 7.047 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.938e-05/0.4825, allocations: 23.81 kB / 0.5541 GB, free: 7.039 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005158/0.483, allocations: 63.33 kB / 0.5541 GB, free: 7.004 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.484, allocations: 0.4954 MB / 0.5546 GB, free: 6.641 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001911/0.4842, allocations: 150.2 kB / 0.5548 GB, free: 6.523 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.557e-05/0.4843, allocations: 29.73 kB / 0.5548 GB, free: 6.508 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.923e-05/0.4844, allocations: 19.53 kB / 0.5548 GB, free: 6.5 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4844, allocations: 0 / 0.5548 GB, free: 6.5 MB / 398.1 MB Notification: Performance of Templates: time 0.006668/0.491, allocations: 2.089 MB / 0.5568 GB, free: 5.004 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Source.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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: 5.523608360439539]