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.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.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,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=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001688/0.001688, allocations: 104 kB / 17.59 MB, free: 5.41 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.002012/0.002012, allocations: 191.3 kB / 18.52 MB, free: 4.508 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.35/1.35, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1786/0.1786, allocations: 38.04 MB / 330.4 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 57.27 kB / 399.5 MB, free: 34.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0824/0.08369, allocations: 58.07 MB / 457.5 MB, free: 8.062 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.005203/0.08893, allocations: 3.906 MB / 461.4 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001316/0.09027, allocations: 0.8766 MB / 462.3 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001677/0.09046, allocations: 19.88 kB / 462.3 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001582/0.09063, allocations: 39.58 kB / 462.4 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004638/0.09113, allocations: 167.1 kB / 462.5 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00019/0.09133, allocations: 79.83 kB / 462.6 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004013/0.09174, allocations: 370.7 kB / 463 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.09193, allocations: 92.55 kB / 463.1 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002547/0.09219, allocations: 159.3 kB / 463.2 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002983/0.0925, allocations: 171.3 kB / 463.4 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.341e-05/0.09255, allocations: 20 kB / 463.4 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.865e-05/0.09261, allocations: 16 kB / 463.4 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.095e-05/0.09271, allocations: 79.73 kB / 463.5 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001365/0.09285, allocations: 127.3 kB / 463.6 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002471/0.0931, allocations: 251.1 kB / 463.9 MB, free: 1.684 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.09312, allocations: 7.922 kB / 463.9 MB, free: 1.676 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.09312, allocations: 0 / 463.9 MB, free: 1.676 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.09314, allocations: 0 / 463.9 MB, free: 1.676 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007724/0.09391, allocations: 0.5544 MB / 464.4 MB, free: 1.074 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.013e-05/0.09395, allocations: 11.89 kB / 464.5 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.591e-05/0.09402, allocations: 32.56 kB / 464.5 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003748/0.09441, allocations: 304 kB / 464.8 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.09443, allocations: 16.38 kB / 464.8 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.551e-05/0.09447, allocations: 20 kB / 464.8 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003448/0.09482, allocations: 266.1 kB / 465.1 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.09484, allocations: 0 / 465.1 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.09487, allocations: 11.98 kB / 465.1 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.09488, allocations: 4 kB / 465.1 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002447/0.09513, allocations: 163.8 kB / 465.3 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001181/0.09632, allocations: 1.183 MB / 466.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001264/0.09646, allocations: 89.14 kB / 466.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.461e-05/0.09652, allocations: 25.78 kB / 466.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/0.09654, allocations: 4 kB / 466.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.518e-05/0.09657, allocations: 30.56 kB / 466.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.09657, allocations: 0 / 466.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006289/0.09721, allocations: 408.8 kB / 467 MB, free: 14.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.875e-05/0.09727, allocations: 81.05 kB / 467.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002122/0.09749, allocations: 246.5 kB / 467.3 MB, free: 13.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.249e-05/0.09751, allocations: 25.7 kB / 467.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.09763, allocations: 191.6 kB / 467.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.998e-05/0.09765, allocations: 23.66 kB / 467.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.559e-05/0.09771, allocations: 57.67 kB / 467.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.09784, allocations: 330.8 kB / 467.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.077e-05/0.0979, allocations: 27.98 kB / 467.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.5e-05/0.098, allocations: 118.9 kB / 468.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001768/0.09818, allocations: 184.6 kB / 468.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.09819, allocations: 0 / 468.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002448/0.09844, allocations: 173.2 kB / 468.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.09846, allocations: 8 kB / 468.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.09848, allocations: 8.375 kB / 468.4 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.0985, allocations: 8 kB / 468.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001433/0.09864, allocations: 43.92 kB / 468.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.006e-06/0.09866, allocations: 7.984 kB / 468.5 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.09877, allocations: 8 kB / 468.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.164e-05/0.09879, allocations: 8.438 kB / 468.5 MB, free: 12.62 MB / 350.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.0001116/0.0989, allocations: 149.7 kB / 468.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.174e-05/0.09895, allocations: 23.72 kB / 468.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001509/0.09911, allocations: 91.33 kB / 468.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.09912, allocations: 8 kB / 468.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.09913, allocations: 0 / 468.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.09914, allocations: 7.984 kB / 468.8 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004085/0.09955, allocations: 423.2 kB / 469.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.411e-06/0.09957, allocations: 4 kB / 469.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.716e-05/0.09966, allocations: 15.94 kB / 469.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.868e-06/0.09967, allocations: 3.984 kB / 469.2 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.759e-06/0.09969, allocations: 4 kB / 469.2 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.0997, allocations: 4.031 kB / 469.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.0997, allocations: 0 / 469.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002319/0.09994, allocations: 236.8 kB / 469.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.104e-05/0.1, allocations: 88.95 kB / 469.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.846e-05/0.1, allocations: 4 kB / 469.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.765e-05/0.1001, allocations: 4 kB / 469.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.825e-05/0.1002, allocations: 12.05 kB / 469.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-06/0.1002, allocations: 4 kB / 469.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001344/0.1003, allocations: 166 kB / 469.7 MB, free: 11.28 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1003, allocations: 0 / 469.7 MB, free: 11.28 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002974/0.1006, allocations: 40 kB / 469.8 MB, free: 11.24 MB / 350.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 9.155e-05/0.1007, allocations: 103.2 kB / 469.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001672/0.1009, allocations: 104 kB / 470 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.1009, allocations: 0 / 470 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.456e-05/0.101, allocations: 20 kB / 470 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004503/0.1014, allocations: 60.94 kB / 470 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008092/0.1022, allocations: 0.5382 MB / 470.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000313/0.1026, allocations: 0.7634 MB / 471.3 MB, free: 9.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.506e-05/0.1026, allocations: 19.44 kB / 471.4 MB, free: 9.57 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1026, allocations: 0 / 471.4 MB, free: 9.57 MB / 350.1 MB Notification: Performance of Templates: time 0.00433/0.107, allocations: 2.652 MB / 474 MB, free: 6.926 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.makefile (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) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches