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.001285/0.001285, allocations: 115.1 kB / 17.07 MB, free: 5.773 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.00203/0.002031, allocations: 195.9 kB / 18 MB, free: 4.953 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.445/1.445, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.175/0.175, allocations: 38.03 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002388/0.002388, allocations: 55.91 kB / 458.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4199/0.4223, allocations: 58.06 MB / 0.5041 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.004907/0.4272, allocations: 3.912 MB / 0.5079 GB, free: 5.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.4285, allocations: 0.8738 MB / 0.5088 GB, free: 4.402 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000145/0.4287, allocations: 14.69 kB / 0.5088 GB, free: 4.395 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002017/0.4289, allocations: 41.69 kB / 0.5088 GB, free: 4.371 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000506/0.4294, allocations: 176 kB / 0.509 GB, free: 4.266 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002094/0.4297, allocations: 90.02 kB / 0.5091 GB, free: 4.215 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004718/0.4301, allocations: 376.2 kB / 0.5094 GB, free: 4.047 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002396/0.4304, allocations: 83.64 kB / 0.5095 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003109/0.4307, allocations: 174.5 kB / 0.5097 GB, free: 3.941 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003842/0.4311, allocations: 163.6 kB / 0.5098 GB, free: 3.879 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.806e-05/0.4312, allocations: 16.94 kB / 0.5099 GB, free: 3.879 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.496e-05/0.4312, allocations: 17.31 kB / 0.5099 GB, free: 3.879 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001359/0.4314, allocations: 83.66 kB / 0.51 GB, free: 3.844 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000166/0.4315, allocations: 123.3 kB / 0.5101 GB, free: 3.773 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003948/0.4319, allocations: 250.9 kB / 0.5103 GB, free: 3.676 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.4319, allocations: 0 / 0.5103 GB, free: 3.676 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.4319, allocations: 0 / 0.5103 GB, free: 3.676 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.432, allocations: 5.062 kB / 0.5103 GB, free: 3.672 MB / 382.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.0008659/0.4328, allocations: 0.5617 MB / 0.5109 GB, free: 3.191 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.4329, allocations: 13.45 kB / 0.5109 GB, free: 3.188 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.651e-05/0.433, allocations: 29.56 kB / 0.5109 GB, free: 3.172 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004637/0.4334, allocations: 321.4 kB / 0.5112 GB, free: 2.922 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.4335, allocations: 24.86 kB / 0.5112 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.245e-05/0.4335, allocations: 21.38 kB / 0.5113 GB, free: 2.898 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004107/0.4339, allocations: 270.1 kB / 0.5115 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.434, allocations: 1.438 kB / 0.5115 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.292e-05/0.434, allocations: 10.19 kB / 0.5115 GB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.434, allocations: 6.234 kB / 0.5115 GB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002841/0.4343, allocations: 159.5 kB / 0.5117 GB, free: 2.668 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0012/0.4355, allocations: 1.177 MB / 0.5128 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001402/0.4357, allocations: 77.64 kB / 0.5129 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.823e-05/0.4357, allocations: 35.23 kB / 0.5129 GB, free: 1.559 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.434e-05/0.4357, allocations: 1.031 kB / 0.5129 GB, free: 1.559 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.4358, allocations: 37.42 kB / 0.513 GB, free: 1.516 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.4358, allocations: 0 / 0.513 GB, free: 1.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.00067/0.4364, allocations: 413.6 kB / 0.5134 GB, free: 1.156 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.504e-05/0.4365, allocations: 82.36 kB / 0.5134 GB, free: 1.059 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002558/0.4367, allocations: 241.2 kB / 0.5137 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.858e-06/0.4368, allocations: 30.41 kB / 0.5137 GB, free: 0.875 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.4369, allocations: 192.2 kB / 0.5139 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.733e-05/0.4369, allocations: 31.47 kB / 0.5139 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.912e-05/0.437, allocations: 44.94 kB / 0.514 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.608e-05/0.4371, allocations: 330.3 kB / 0.5143 GB, free: 340 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.493e-05/0.4371, allocations: 26.77 kB / 0.5143 GB, free: 332 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.216e-05/0.4372, allocations: 126.8 kB / 0.5144 GB, free: 188 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001527/0.4374, allocations: 164.8 kB / 0.5146 GB, free: 20 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.4374, allocations: 1.125 kB / 0.5146 GB, free: 20 kB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003165/0.4377, allocations: 181.6 kB / 0.5148 GB, free: 15.93 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.4378, allocations: 11.83 kB / 0.5148 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.4378, allocations: 6.469 kB / 0.5148 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.484e-05/0.4378, allocations: 5.375 kB / 0.5148 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001691/0.438, allocations: 40.16 kB / 0.5148 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.381e-05/0.438, allocations: 5.75 kB / 0.5148 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/0.4381, allocations: 17.06 kB / 0.5148 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.767e-05/0.4381, allocations: 7.906 kB / 0.5148 GB, free: 15.9 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.0001481/0.4383, allocations: 148 kB / 0.515 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.786e-05/0.4383, allocations: 16.53 kB / 0.515 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000199/0.4385, allocations: 102.8 kB / 0.5151 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.4386, allocations: 3.047 kB / 0.5151 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.4386, allocations: 0 / 0.5151 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.4386, allocations: 1.594 kB / 0.5151 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005411/0.4391, allocations: 427.6 kB / 0.5155 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.4391, allocations: 0 / 0.5155 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.476e-05/0.4392, allocations: 16.03 kB / 0.5155 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.4393, allocations: 1.25 kB / 0.5155 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.4393, allocations: 1.188 kB / 0.5155 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.628e-06/0.4393, allocations: 3.203 kB / 0.5155 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4393, allocations: 320 / 0.5155 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000305/0.4396, allocations: 232.3 kB / 0.5158 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.934e-05/0.4397, allocations: 103.5 kB / 0.5159 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.003e-05/0.4397, allocations: 1.703 kB / 0.5159 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.727e-05/0.4398, allocations: 7.203 kB / 0.5159 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.789e-05/0.4399, allocations: 7.672 kB / 0.5159 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.738e-06/0.4399, allocations: 7.344 kB / 0.5159 GB, free: 15.01 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002011/0.4401, allocations: 175 kB / 0.516 GB, free: 14.9 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4401, allocations: 8 kB / 0.5161 GB, free: 14.89 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003203/0.4404, allocations: 39.31 kB / 0.5161 GB, free: 14.89 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.0001304/0.4406, allocations: 98.34 kB / 0.5162 GB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002317/0.4408, allocations: 89.55 kB / 0.5163 GB, free: 14.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.4408, allocations: 0.875 kB / 0.5163 GB, free: 14.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.395e-05/0.4409, allocations: 35.98 kB / 0.5163 GB, free: 14.76 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004948/0.4414, allocations: 57.36 kB / 0.5164 GB, free: 14.74 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009574/0.4423, allocations: 496 kB / 0.5168 GB, free: 14.42 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003847/0.4427, allocations: 0.7562 MB / 0.5176 GB, free: 13.72 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000104/0.4429, allocations: 39.77 kB / 0.5176 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.04e-05/0.4429, allocations: 19.25 kB / 0.5176 GB, free: 13.69 MB / 398.1 MB Notification: Performance of SimCode: time 2.01e-07/0.4429, allocations: 0 / 0.5176 GB, free: 13.69 MB / 398.1 MB Notification: Performance of Templates: time 0.006212/0.4491, allocations: 1.782 MB / 0.5194 GB, free: 13.52 MB / 398.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/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) Reference file matches