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.001348/0.001348, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 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.001065/0.001065, allocations: 164 kB / 24.99 MB, free: 8.355 MB / 18.57 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.015/1.015, allocations: 177.1 MB / 205.3 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] 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.2584/0.2584, allocations: 29.42 MB / 291.2 MB, free: 2.434 MB / 266.7 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=741,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=741,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.084e-06/2.084e-06, allocations: 0 / 369.6 MB, free: 11.3 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.832e-05/3.041e-05, allocations: 9.969 kB / 369.6 MB, free: 11.3 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.006195/0.006225, allocations: 4.05 MB / 373.7 MB, free: 7.215 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001639/0.007864, allocations: 0.8727 MB / 374.6 MB, free: 6.34 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001883/0.008052, allocations: 19.81 kB / 374.6 MB, free: 6.32 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001965/0.008248, allocations: 43.58 kB / 374.6 MB, free: 6.277 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005632/0.008812, allocations: 182.9 kB / 374.8 MB, free: 6.098 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002193/0.009031, allocations: 75.88 kB / 374.9 MB, free: 6.023 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004702/0.009501, allocations: 394.4 kB / 375.2 MB, free: 5.637 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001805/0.009682, allocations: 52.69 kB / 375.3 MB, free: 5.59 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000429/0.01011, allocations: 231.3 kB / 375.5 MB, free: 5.363 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003204/0.01043, allocations: 155.5 kB / 375.7 MB, free: 5.211 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.904e-05/0.01047, allocations: 20 kB / 375.7 MB, free: 5.191 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.37e-05/0.01051, allocations: 16 kB / 375.7 MB, free: 5.176 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001115/0.01063, allocations: 87.73 kB / 375.8 MB, free: 5.09 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001221/0.01075, allocations: 87.77 kB / 375.9 MB, free: 5.004 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003013/0.01105, allocations: 179.3 kB / 376.1 MB, free: 4.828 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.01105, allocations: 0 / 376.1 MB, free: 4.828 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.01105, allocations: 0 / 376.1 MB, free: 4.828 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.01106, allocations: 0 / 376.1 MB, free: 4.828 MB / 346.7 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.0008209/0.01188, allocations: 0.5982 MB / 376.7 MB, free: 4.195 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.01193, allocations: 11.98 kB / 376.7 MB, free: 4.184 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.599e-05/0.01202, allocations: 48.75 kB / 376.7 MB, free: 4.137 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004517/0.01247, allocations: 271.1 kB / 377 MB, free: 3.844 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/0.01249, allocations: 12.88 kB / 377 MB, free: 3.832 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.225e-05/0.01254, allocations: 24.38 kB / 377 MB, free: 3.809 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003422/0.01288, allocations: 237.4 kB / 377.3 MB, free: 3.535 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.01289, allocations: 3.938 kB / 377.3 MB, free: 3.531 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.376e-05/0.01292, allocations: 8 kB / 377.3 MB, free: 3.523 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.01293, allocations: 4 kB / 377.3 MB, free: 3.52 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001981/0.01313, allocations: 87.66 kB / 377.4 MB, free: 3.434 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001162/0.01429, allocations: 1.371 MB / 378.7 MB, free: 1.98 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/0.01442, allocations: 82.02 kB / 378.8 MB, free: 1.875 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.449e-05/0.01446, allocations: 31.47 kB / 378.8 MB, free: 1.836 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.322e-05/0.01448, allocations: 4 kB / 378.8 MB, free: 1.832 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.0145, allocations: 37.39 kB / 378.9 MB, free: 1.785 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.643e-06/0.0145, allocations: 0 / 378.9 MB, free: 1.785 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006264/0.01513, allocations: 333.1 kB / 379.2 MB, free: 1.422 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/0.01518, allocations: 81.11 kB / 379.3 MB, free: 1.324 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00022/0.0154, allocations: 288.2 kB / 379.6 MB, free: 1.027 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.01541, allocations: 29.7 kB / 379.6 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.01554, allocations: 242.6 kB / 379.8 MB, free: 0.75 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.51e-05/0.01557, allocations: 27.78 kB / 379.9 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.6e-05/0.01562, allocations: 43.45 kB / 379.9 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.01577, allocations: 0.5117 MB / 380.4 MB, free: 152 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.055e-05/0.01581, allocations: 20.05 kB / 380.4 MB, free: 132 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001235/0.01594, allocations: 155.2 kB / 380.6 MB, free: 15.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001833/0.01612, allocations: 191.1 kB / 380.8 MB, free: 15.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.01612, allocations: 0 / 380.8 MB, free: 15.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002352/0.01636, allocations: 181.4 kB / 380.9 MB, free: 15.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.01637, allocations: 15.92 kB / 381 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.01638, allocations: 4 kB / 381 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.01639, allocations: 4 kB / 381 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.01653, allocations: 39.92 kB / 381 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.01654, allocations: 7.938 kB / 381 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.582e-05/0.01663, allocations: 11.94 kB / 381 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.01665, allocations: 8 kB / 381 MB, free: 15.39 MB / 362.7 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 8.789e-05/0.01673, allocations: 172.8 kB / 381.2 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.617e-05/0.01676, allocations: 19.91 kB / 381.2 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001131/0.01687, allocations: 83.44 kB / 381.3 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.01687, allocations: 0 / 381.3 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.01688, allocations: 4 kB / 381.3 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.01688, allocations: 3.938 kB / 381.3 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002859/0.01717, allocations: 405 kB / 381.7 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.01717, allocations: 0 / 381.7 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.725e-05/0.01723, allocations: 12 kB / 381.7 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.01723, allocations: 7.984 kB / 381.7 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.01724, allocations: 4.031 kB / 381.7 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.01724, allocations: 3.938 kB / 381.7 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.01725, allocations: 8.25 kB / 381.7 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001645/0.01741, allocations: 263.2 kB / 382 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.655e-05/0.01743, allocations: 19.89 kB / 382 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.768e-05/0.01744, allocations: 4 kB / 382 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.57e-05/0.01749, allocations: 7.938 kB / 382 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.834e-05/0.01751, allocations: 3.984 kB / 382 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.999e-06/0.01751, allocations: 4 kB / 382 MB, free: 14.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.73e-05/0.0176, allocations: 193.1 kB / 382.2 MB, free: 14.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0176, allocations: 0 / 382.2 MB, free: 14.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001894/0.01779, allocations: 44.03 kB / 382.3 MB, free: 14.07 MB / 362.7 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 7.341e-05/0.01786, allocations: 95.19 kB / 382.4 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001378/0.018, allocations: 98.75 kB / 382.5 MB, free: 13.87 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.018, allocations: 4 kB / 382.5 MB, free: 13.86 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.522e-05/0.01804, allocations: 32.48 kB / 382.5 MB, free: 13.83 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003022/0.01834, allocations: 67.08 kB / 382.6 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009222/0.01926, allocations: 481.8 kB / 383 MB, free: 13.26 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.67e-05/0.01932, allocations: 96.3 kB / 383.1 MB, free: 13.14 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.651e-05/0.01939, allocations: 30.22 kB / 383.2 MB, free: 13.12 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.151e-05/0.01942, allocations: 20.48 kB / 383.2 MB, free: 13.1 MB / 362.7 MB Notification: Performance of SimCode: time 5.11e-07/0.01942, allocations: 0 / 383.2 MB, free: 13.1 MB / 362.7 MB Notification: Performance of Templates: time 0.003476/0.02289, allocations: 1.784 MB / 385 MB, free: 11.36 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.145235409028828]