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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 109.9 kB / 17.06 MB, free: 5.973 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.001192/0.001192, allocations: 200 kB / 18.01 MB, free: 5.055 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.342/1.342, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1751/0.1751, allocations: 38.04 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 55.91 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3356, allocations: 58.07 MB / 0.5036 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.007339/0.343, allocations: 4.054 MB / 0.5076 GB, free: 4.691 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001464/0.3445, allocations: 0.9225 MB / 0.5085 GB, free: 4.039 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001991/0.3447, allocations: 10.88 kB / 0.5085 GB, free: 4.035 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002357/0.345, allocations: 46.23 kB / 0.5085 GB, free: 4.008 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005688/0.3456, allocations: 181.5 kB / 0.5087 GB, free: 3.898 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002524/0.3459, allocations: 92.25 kB / 0.5088 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004792/0.3464, allocations: 404.3 kB / 0.5092 GB, free: 3.668 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002371/0.3466, allocations: 116.3 kB / 0.5093 GB, free: 3.633 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002454/0.3469, allocations: 178.1 kB / 0.5095 GB, free: 3.555 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003243/0.3472, allocations: 186.8 kB / 0.5096 GB, free: 3.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.543e-05/0.3473, allocations: 23.16 kB / 0.5097 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.245e-05/0.3473, allocations: 19.16 kB / 0.5097 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001359/0.3475, allocations: 88.22 kB / 0.5098 GB, free: 3.441 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001522/0.3476, allocations: 144.3 kB / 0.5099 GB, free: 3.355 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003679/0.348, allocations: 287.6 kB / 0.5102 GB, free: 3.238 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.348, allocations: 0 / 0.5102 GB, free: 3.238 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.554e-06/0.348, allocations: 1.312 kB / 0.5102 GB, free: 3.238 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.348, allocations: 0 / 0.5102 GB, free: 3.238 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.000903/0.3489, allocations: 0.5996 MB / 0.5108 GB, free: 2.734 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.349, allocations: 13.89 kB / 0.5108 GB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.467e-05/0.3491, allocations: 59.42 kB / 0.5108 GB, free: 2.676 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.068e-05/0.3491, allocations: 32 kB / 0.5109 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004375/0.3496, allocations: 343.1 kB / 0.5112 GB, free: 2.387 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.561e-05/0.3496, allocations: 20.31 kB / 0.5112 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.099e-05/0.3497, allocations: 18.78 kB / 0.5112 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004172/0.3501, allocations: 295 kB / 0.5115 GB, free: 2.191 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.3501, allocations: 0 / 0.5115 GB, free: 2.191 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.343e-05/0.3501, allocations: 7.953 kB / 0.5115 GB, free: 2.188 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.3501, allocations: 9.406 kB / 0.5115 GB, free: 2.184 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002968/0.3504, allocations: 182.7 kB / 0.5117 GB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001187/0.3516, allocations: 1.23 MB / 0.5129 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002853/0.3519, allocations: 105.7 kB / 0.513 GB, free: 1.027 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.835e-05/0.352, allocations: 47.5 kB / 0.5131 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.82e-05/0.3521, allocations: 5.125 kB / 0.5131 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.606e-05/0.3521, allocations: 33.47 kB / 0.5131 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.343e-06/0.3521, allocations: 0 / 0.5131 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007075/0.3528, allocations: 481.4 kB / 0.5135 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.759e-05/0.3528, allocations: 86.27 kB / 0.5136 GB, free: 480 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002071/0.3531, allocations: 249 kB / 0.5139 GB, free: 332 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.133e-05/0.3531, allocations: 31.27 kB / 0.5139 GB, free: 296 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.762e-05/0.3532, allocations: 197.2 kB / 0.5141 GB, free: 124 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.833e-05/0.3532, allocations: 45.55 kB / 0.5141 GB, free: 88 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.694e-05/0.3533, allocations: 52.53 kB / 0.5142 GB, free: 48 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.3534, allocations: 331.2 kB / 0.5145 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.997e-05/0.3535, allocations: 39.45 kB / 0.5145 GB, free: 15.71 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001223/0.3536, allocations: 131.6 kB / 0.5147 GB, free: 15.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002237/0.3538, allocations: 194.5 kB / 0.5148 GB, free: 15.39 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3538, allocations: 1.062 kB / 0.5148 GB, free: 15.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003006/0.3541, allocations: 205.6 kB / 0.515 GB, free: 15.29 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.3542, allocations: 5.75 kB / 0.515 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.3542, allocations: 4.156 kB / 0.5151 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.3542, allocations: 4.875 kB / 0.5151 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000171/0.3544, allocations: 44.59 kB / 0.5151 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.3544, allocations: 12.94 kB / 0.5151 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001131/0.3545, allocations: 13.25 kB / 0.5151 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/0.3545, allocations: 17.84 kB / 0.5151 GB, free: 15.27 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.0001339/0.3547, allocations: 156.9 kB / 0.5153 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.747e-05/0.3547, allocations: 22.12 kB / 0.5153 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002379/0.355, allocations: 126.9 kB / 0.5154 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.355, allocations: 5.062 kB / 0.5154 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.355, allocations: 1.062 kB / 0.5154 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.355, allocations: 6.406 kB / 0.5154 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005433/0.3556, allocations: 481.5 kB / 0.5159 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.3556, allocations: 0 / 0.5159 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001231/0.3557, allocations: 21.3 kB / 0.5159 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.3557, allocations: 1.812 kB / 0.5159 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.3557, allocations: 14.02 kB / 0.5159 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.3557, allocations: 2.375 kB / 0.5159 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3557, allocations: 3.938 kB / 0.5159 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003161/0.3561, allocations: 271.4 kB / 0.5162 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.634e-05/0.3561, allocations: 96.59 kB / 0.5163 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.637e-05/0.3562, allocations: 11.06 kB / 0.5163 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.3563, allocations: 8.781 kB / 0.5163 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.43e-05/0.3563, allocations: 7.766 kB / 0.5163 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.488e-05/0.3563, allocations: 10.56 kB / 0.5163 GB, free: 14.31 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001516/0.3565, allocations: 172.7 kB / 0.5165 GB, free: 14.21 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3565, allocations: 0 / 0.5165 GB, free: 14.21 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003293/0.3568, allocations: 48.59 kB / 0.5165 GB, free: 14.2 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.0005336/0.3574, allocations: 0.8104 MB / 0.5173 GB, free: 13.46 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002157/0.3576, allocations: 110.7 kB / 0.5174 GB, free: 13.43 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3576, allocations: 1.094 kB / 0.5174 GB, free: 13.43 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.634e-05/0.3577, allocations: 46.22 kB / 0.5175 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004889/0.3582, allocations: 65.12 kB / 0.5175 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002875/0.3611, allocations: 2.449 MB / 0.5199 GB, free: 11.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00035/0.3614, allocations: 0.7706 MB / 0.5207 GB, free: 10.81 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001179/0.3616, allocations: 29.22 kB / 0.5207 GB, free: 10.8 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.3617, allocations: 81.89 kB / 0.5208 GB, free: 10.74 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3617, allocations: 0 / 0.5208 GB, free: 10.74 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02643/0.3881, allocations: 4.671 MB / 0.5254 GB, free: 10.15 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.667/8.055, allocations: 4.875 kB / 0.5254 GB, free: 10.14 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,meter.i,meter.p,meter.v Variables in the result:der(ind.i),grd.term.i,grd.term.v,ind.S_nom,ind.V_nom,ind.dynType,ind.f_nom,ind.i,ind.i_start,ind.puUnits,ind.r,ind.term.i[1],ind.term.i[2],ind.term.v[1],ind.term.v[2],ind.v,ind.v_start,ind.x,meter.S_nom,meter.V_nom,meter.av,meter.i,meter.i0,meter.p,meter.puUnits,meter.tcst,meter.term_n.i[1],meter.term_n.i[2],meter.term_n.v[1],meter.term_n.v[2],meter.term_p.i[1],meter.term_p.i[2],meter.term_p.v[1],meter.term_p.v[2],meter.v,meter.v0,system.alpha0,system.dynType,system.f,system.fType,system.f_lim[1],system.f_lim[2],system.f_nom,system.initime,system.omega,system.omega_nom,system.receiveFreq.H,system.receiveFreq.h,system.receiveFreq.w_H,system.receiveFreq.w_h,system.refType,system.synRef,system.theta,system.thetaRef,system.thetaRel,system.w_nom,time,transPh.a_end,transPh.a_start,transPh.n,transPh.ph_end,transPh.ph_start,transPh.t_change,transPh.t_duration,transPh.y[1],transPh.y[2],voltage.S_nom,voltage.V_nom,voltage.alpha0,voltage.f,voltage.fType,voltage.neutral.i,voltage.neutral.v,voltage.pol,voltage.puUnits,voltage.term.i[1],voltage.term.i[2],voltage.term.v[1],voltage.term.v[2],voltage.use_vPhasor_in,voltage.v0eff,voltage.vPhasor_in[1],voltage.vPhasor_in[2]