Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.ImpedanceOneTerm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 112.8 kB / 17.07 MB, free: 5.988 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.001151/0.001151, allocations: 195 kB / 18 MB, free: 5.074 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.409/1.409, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1831/0.1831, allocations: 38.04 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001295, allocations: 63.91 kB / 458.2 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4429/0.4442, allocations: 58.06 MB / 0.5041 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.005583/0.4498, allocations: 4.056 MB / 0.5081 GB, free: 4.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001684/0.4516, allocations: 0.9126 MB / 0.509 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002017/0.4518, allocations: 12.03 kB / 0.509 GB, free: 4.328 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002101/0.452, allocations: 45.31 kB / 0.509 GB, free: 4.301 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005583/0.4526, allocations: 181.4 kB / 0.5092 GB, free: 4.191 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002447/0.4529, allocations: 88.52 kB / 0.5093 GB, free: 4.148 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004322/0.4533, allocations: 404.7 kB / 0.5097 GB, free: 3.965 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002475/0.4536, allocations: 114.2 kB / 0.5098 GB, free: 3.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002458/0.4538, allocations: 179.7 kB / 0.5099 GB, free: 3.844 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003304/0.4542, allocations: 182.5 kB / 0.5101 GB, free: 3.773 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.333e-05/0.4542, allocations: 19.19 kB / 0.5101 GB, free: 3.773 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.316e-05/0.4543, allocations: 19.78 kB / 0.5102 GB, free: 3.773 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001227/0.4544, allocations: 90.88 kB / 0.5102 GB, free: 3.734 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001363/0.4545, allocations: 145.9 kB / 0.5104 GB, free: 3.648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003684/0.4549, allocations: 287.7 kB / 0.5107 GB, free: 3.531 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.4549, allocations: 0.9375 kB / 0.5107 GB, free: 3.531 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4549, allocations: 4 kB / 0.5107 GB, free: 3.527 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.187e-05/0.4549, allocations: 0 / 0.5107 GB, free: 3.527 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008885/0.4558, allocations: 0.6038 MB / 0.5112 GB, free: 3.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.4559, allocations: 9.781 kB / 0.5113 GB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.753e-05/0.456, allocations: 35.3 kB / 0.5113 GB, free: 3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004487/0.4564, allocations: 339.9 kB / 0.5116 GB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.16e-05/0.4565, allocations: 17.97 kB / 0.5116 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.858e-05/0.4565, allocations: 26.25 kB / 0.5117 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004328/0.4569, allocations: 287.1 kB / 0.5119 GB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.457, allocations: 5.125 kB / 0.5119 GB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.384e-05/0.457, allocations: 10.22 kB / 0.5119 GB, free: 2.527 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.457, allocations: 5.875 kB / 0.512 GB, free: 2.527 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003031/0.4573, allocations: 182.1 kB / 0.5121 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001273/0.4586, allocations: 1.235 MB / 0.5133 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003225/0.4589, allocations: 112.7 kB / 0.5134 GB, free: 1.359 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.774e-05/0.459, allocations: 43.56 kB / 0.5135 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.741e-05/0.4591, allocations: 2.094 kB / 0.5135 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.279e-05/0.4591, allocations: 36.17 kB / 0.5135 GB, free: 1.289 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 2.004e-06/0.4591, allocations: 0 / 0.5135 GB, free: 1.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008702/0.46, allocations: 494.1 kB / 0.514 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.094e-05/0.46, allocations: 79.17 kB / 0.5141 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002781/0.4603, allocations: 252.4 kB / 0.5143 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.315e-05/0.4603, allocations: 26.7 kB / 0.5143 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.4604, allocations: 203.6 kB / 0.5145 GB, free: 460 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.505e-05/0.4605, allocations: 43.45 kB / 0.5146 GB, free: 424 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.562e-05/0.4606, allocations: 45.48 kB / 0.5146 GB, free: 392 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.884e-05/0.4607, allocations: 342.9 kB / 0.5149 GB, free: 52 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.057e-05/0.4608, allocations: 44.55 kB / 0.515 GB, free: 32 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.4609, allocations: 124.4 kB / 0.5151 GB, free: 15.9 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002496/0.4612, allocations: 194.7 kB / 0.5153 GB, free: 15.72 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4612, allocations: 1.344 kB / 0.5153 GB, free: 15.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003588/0.4616, allocations: 212.7 kB / 0.5155 GB, free: 15.61 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.4616, allocations: 6.844 kB / 0.5155 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.4616, allocations: 4.281 kB / 0.5155 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.4617, allocations: 5.062 kB / 0.5155 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001722/0.4618, allocations: 48.72 kB / 0.5155 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/0.4619, allocations: 5.625 kB / 0.5156 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.462, allocations: 12.03 kB / 0.5156 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.462, allocations: 9.609 kB / 0.5156 GB, free: 15.59 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 (24): * Single equations (assignments): 24 * 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.0001582/0.4622, allocations: 148.2 kB / 0.5157 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.693e-05/0.4622, allocations: 22.55 kB / 0.5157 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003016/0.4625, allocations: 135.1 kB / 0.5159 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.4625, allocations: 1.25 kB / 0.5159 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.4626, allocations: 6.172 kB / 0.5159 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.4626, allocations: 8.625 kB / 0.5159 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006795/0.4633, allocations: 477.3 kB / 0.5163 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.4633, allocations: 1.281 kB / 0.5163 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001259/0.4634, allocations: 20.62 kB / 0.5164 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.4634, allocations: 1.312 kB / 0.5164 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.4634, allocations: 7.156 kB / 0.5164 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.574e-06/0.4634, allocations: 1.406 kB / 0.5164 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4635, allocations: 0.7969 kB / 0.5164 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003786/0.4638, allocations: 289.8 kB / 0.5166 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.172e-05/0.4639, allocations: 101.7 kB / 0.5167 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.632e-05/0.464, allocations: 6.094 kB / 0.5167 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.4641, allocations: 5.406 kB / 0.5168 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.944e-05/0.4641, allocations: 9.891 kB / 0.5168 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.4641, allocations: 11.97 kB / 0.5168 GB, free: 14.63 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002261/0.4644, allocations: 177.9 kB / 0.5169 GB, free: 14.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4644, allocations: 0 / 0.5169 GB, free: 14.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003468/0.4647, allocations: 42.88 kB / 0.517 GB, free: 14.52 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 (13): * Single equations (assignments): 12 * 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.0001204/0.4649, allocations: 99.56 kB / 0.5171 GB, free: 14.43 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002617/0.4651, allocations: 120.2 kB / 0.5172 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4651, allocations: 0 / 0.5172 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.661e-05/0.4652, allocations: 46.06 kB / 0.5172 GB, free: 14.37 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004965/0.4657, allocations: 54.58 kB / 0.5173 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.4669, allocations: 0.5433 MB / 0.5178 GB, free: 14 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004936/0.4675, allocations: 0.7711 MB / 0.5186 GB, free: 13.3 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000139/0.4676, allocations: 38.05 kB / 0.5186 GB, free: 13.29 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.32e-05/0.4677, allocations: 20.5 kB / 0.5186 GB, free: 13.28 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4677, allocations: 0 / 0.5186 GB, free: 13.28 MB / 398.1 MB Notification: Performance of Templates: time 0.006231/0.4739, allocations: 2.031 MB / 0.5206 GB, free: 13.09 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches