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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001139/0.001139, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.629/1.629, allocations: 205.1 MB / 223.1 MB, free: 8.465 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00134/0.00134, allocations: 95.94 kB / 270.5 MB, free: 8.426 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1824/0.1824, allocations: 38.01 MB / 355.8 MB, free: 2.922 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001065/0.001065, allocations: 55.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4118/0.4128, allocations: 55.23 MB / 477.1 MB, free: 9.918 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.008304/0.4212, allocations: 4.733 MB / 481.8 MB, free: 6.574 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002432/0.4237, allocations: 1.144 MB / 483 MB, free: 5.758 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00032/0.4241, allocations: 23.66 kB / 483 MB, free: 5.75 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003269/0.4245, allocations: 33.72 kB / 483 MB, free: 5.734 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006415/0.4251, allocations: 156 kB / 483.2 MB, free: 5.645 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002943/0.4254, allocations: 79.58 kB / 483.3 MB, free: 5.602 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007262/0.4262, allocations: 0.53 MB / 483.8 MB, free: 5.406 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002787/0.4265, allocations: 106.2 kB / 483.9 MB, free: 5.371 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002751/0.4267, allocations: 155.7 kB / 484 MB, free: 5.305 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003668/0.4271, allocations: 186.8 kB / 484.2 MB, free: 5.238 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.127e-05/0.4272, allocations: 12.22 kB / 484.2 MB, free: 5.238 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.365e-05/0.4272, allocations: 13.94 kB / 484.3 MB, free: 5.238 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001361/0.4274, allocations: 87.66 kB / 484.3 MB, free: 5.203 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001588/0.4275, allocations: 137.8 kB / 484.5 MB, free: 5.125 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003771/0.4279, allocations: 280.9 kB / 484.7 MB, free: 5.008 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.4279, allocations: 0 / 484.7 MB, free: 5.008 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.428, allocations: 0.7969 kB / 484.7 MB, free: 5.008 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.715e-06/0.428, allocations: 0 / 484.7 MB, free: 5.008 MB / 314.7 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.001139/0.4291, allocations: 0.5915 MB / 485.3 MB, free: 4.516 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/0.4292, allocations: 10.28 kB / 485.3 MB, free: 4.516 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.152e-05/0.4293, allocations: 34.75 kB / 485.4 MB, free: 4.496 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004909/0.4298, allocations: 321.9 kB / 485.7 MB, free: 4.23 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.879e-05/0.4298, allocations: 20.97 kB / 485.7 MB, free: 4.219 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.06e-05/0.4299, allocations: 22.14 kB / 485.7 MB, free: 4.211 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005794/0.4304, allocations: 290.7 kB / 486 MB, free: 4.031 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.4305, allocations: 1.984 kB / 486 MB, free: 4.031 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.684e-05/0.4305, allocations: 10.69 kB / 486 MB, free: 4.023 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.327e-05/0.4305, allocations: 5.5 kB / 486 MB, free: 4.023 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003977/0.4309, allocations: 182 kB / 486.2 MB, free: 3.965 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001713/0.4327, allocations: 1.232 MB / 487.5 MB, free: 2.938 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004001/0.4331, allocations: 110.4 kB / 487.6 MB, free: 2.863 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.857e-05/0.4332, allocations: 46.28 kB / 487.6 MB, free: 2.832 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.897e-05/0.4332, allocations: 3.609 kB / 487.6 MB, free: 2.832 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.393e-05/0.4332, allocations: 31.84 kB / 487.6 MB, free: 2.793 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 1.933e-06/0.4332, allocations: 4 kB / 487.6 MB, free: 2.789 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.000979/0.4342, allocations: 488.1 kB / 488.1 MB, free: 2.398 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.019e-05/0.4343, allocations: 82.48 kB / 488.2 MB, free: 2.301 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003136/0.4346, allocations: 241.2 kB / 488.4 MB, free: 2.152 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.4347, allocations: 30.41 kB / 488.5 MB, free: 2.117 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.4348, allocations: 198 kB / 488.7 MB, free: 1.949 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.987e-05/0.4349, allocations: 41.75 kB / 488.7 MB, free: 1.918 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.264e-05/0.435, allocations: 43.73 kB / 488.7 MB, free: 1.887 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.676e-05/0.4351, allocations: 336.5 kB / 489.1 MB, free: 1.562 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.807e-05/0.4351, allocations: 34.8 kB / 489.1 MB, free: 1.551 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.4353, allocations: 130 kB / 489.2 MB, free: 1.414 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002416/0.4355, allocations: 195.4 kB / 489.4 MB, free: 1.234 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.4355, allocations: 0 / 489.4 MB, free: 1.234 MB / 314.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003375/0.4359, allocations: 205.7 kB / 489.6 MB, free: 1.133 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.4359, allocations: 7.312 kB / 489.6 MB, free: 1.133 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.4359, allocations: 6.75 kB / 489.6 MB, free: 1.129 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.359e-05/0.436, allocations: 9.484 kB / 489.6 MB, free: 1.125 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001756/0.4361, allocations: 44.69 kB / 489.7 MB, free: 1.121 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.542e-05/0.4362, allocations: 8.625 kB / 489.7 MB, free: 1.117 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001328/0.4363, allocations: 12.06 kB / 489.7 MB, free: 1.109 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.389e-05/0.4363, allocations: 14.11 kB / 489.7 MB, free: 1.105 MB / 314.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 (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.0001472/0.4365, allocations: 157.2 kB / 489.9 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.951e-05/0.4366, allocations: 23.03 kB / 489.9 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002656/0.4368, allocations: 134 kB / 490 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.4368, allocations: 1.312 kB / 490 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.4369, allocations: 2.188 kB / 490 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.4369, allocations: 4.688 kB / 490 MB, free: 0.875 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000619/0.4375, allocations: 484.3 kB / 490.5 MB, free: 500 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.4375, allocations: 2 kB / 490.5 MB, free: 500 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001323/0.4376, allocations: 24.27 kB / 490.5 MB, free: 496 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.4377, allocations: 2.125 kB / 490.5 MB, free: 496 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.611e-05/0.4377, allocations: 13.52 kB / 490.6 MB, free: 484 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.4377, allocations: 6.062 kB / 490.6 MB, free: 480 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4377, allocations: 0.9375 kB / 490.6 MB, free: 480 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002237/0.4399, allocations: 1.624 MB / 492.2 MB, free: 15.13 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.202e-05/0.44, allocations: 96.34 kB / 492.3 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.961e-05/0.4401, allocations: 5.875 kB / 492.3 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.781e-05/0.4402, allocations: 1.156 kB / 492.3 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.199e-05/0.4402, allocations: 15.91 kB / 492.3 MB, free: 15.01 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.4402, allocations: 3.75 kB / 492.3 MB, free: 15.01 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002085/0.4405, allocations: 172.7 kB / 492.5 MB, free: 14.91 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4405, allocations: 0 / 492.5 MB, free: 14.91 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000463/0.4409, allocations: 62.16 kB / 492.5 MB, free: 14.91 MB / 330.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 (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.0001492/0.4411, allocations: 103.7 kB / 492.6 MB, free: 14.81 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002583/0.4414, allocations: 114.2 kB / 492.7 MB, free: 14.77 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4414, allocations: 192 / 492.7 MB, free: 14.77 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.555e-05/0.4415, allocations: 46.58 kB / 492.8 MB, free: 14.76 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005444/0.442, allocations: 60.81 kB / 492.9 MB, free: 14.73 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.4435, allocations: 0.7945 MB / 493.6 MB, free: 14.13 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004757/0.444, allocations: 0.774 MB / 494.4 MB, free: 13.43 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000189/0.4442, allocations: 35.09 kB / 494.5 MB, free: 13.42 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.4443, allocations: 26.06 kB / 494.5 MB, free: 13.41 MB / 330.7 MB Notification: Performance of SimCode: time 5.01e-07/0.4443, allocations: 0 / 494.5 MB, free: 13.41 MB / 330.7 MB Notification: Performance of Templates: time 0.007698/0.452, allocations: 2.176 MB / 496.7 MB, free: 13.21 MB / 330.7 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@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches