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.001413/0.001413, allocations: 104.5 kB / 17.06 MB, free: 6.145 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.001615/0.001615, allocations: 195 kB / 18 MB, free: 5.219 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.424/1.424, 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.1984/0.1984, allocations: 38.04 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 63.89 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4128/0.4144, allocations: 58.06 MB / 0.5036 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.005187/0.4196, allocations: 4.066 MB / 0.5076 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001566/0.4212, allocations: 0.9149 MB / 0.5085 GB, free: 4.012 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001961/0.4214, allocations: 15.44 kB / 0.5085 GB, free: 4.004 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001958/0.4217, allocations: 41.19 kB / 0.5085 GB, free: 3.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005538/0.4223, allocations: 181 kB / 0.5087 GB, free: 3.871 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002626/0.4226, allocations: 92.73 kB / 0.5088 GB, free: 3.824 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005114/0.4231, allocations: 400 kB / 0.5092 GB, free: 3.645 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002771/0.4234, allocations: 118.3 kB / 0.5093 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003235/0.4237, allocations: 184.7 kB / 0.5095 GB, free: 3.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004085/0.4241, allocations: 183.1 kB / 0.5096 GB, free: 3.449 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.512e-05/0.4242, allocations: 19.53 kB / 0.5097 GB, free: 3.449 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.409e-05/0.4243, allocations: 18.59 kB / 0.5097 GB, free: 3.449 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001552/0.4244, allocations: 88.19 kB / 0.5098 GB, free: 3.414 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001975/0.4246, allocations: 144.3 kB / 0.5099 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004517/0.4251, allocations: 290.9 kB / 0.5102 GB, free: 3.207 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.4251, allocations: 1.906 kB / 0.5102 GB, free: 3.207 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4251, allocations: 0 / 0.5102 GB, free: 3.207 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.4251, allocations: 0 / 0.5102 GB, free: 3.207 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.001089/0.4262, allocations: 0.5919 MB / 0.5108 GB, free: 2.711 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.725e-05/0.4263, allocations: 13.94 kB / 0.5108 GB, free: 2.707 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.305e-05/0.4264, allocations: 55.89 kB / 0.5108 GB, free: 2.656 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.142e-05/0.4265, allocations: 31.25 kB / 0.5109 GB, free: 2.641 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005535/0.427, allocations: 342.6 kB / 0.5112 GB, free: 2.367 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.4271, allocations: 25.25 kB / 0.5112 GB, free: 2.352 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.545e-05/0.4271, allocations: 22.94 kB / 0.5112 GB, free: 2.344 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004818/0.4276, allocations: 292.8 kB / 0.5115 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.4276, allocations: 1.188 kB / 0.5115 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.492e-05/0.4277, allocations: 6.281 kB / 0.5115 GB, free: 2.164 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.4277, allocations: 5.812 kB / 0.5115 GB, free: 2.164 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003281/0.428, allocations: 187.1 kB / 0.5117 GB, free: 2.102 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001347/0.4294, allocations: 1.23 MB / 0.5129 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003136/0.4297, allocations: 112.6 kB / 0.513 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.235e-05/0.4298, allocations: 44.62 kB / 0.5131 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.4298, allocations: 1.125 kB / 0.5131 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.4298, allocations: 33.72 kB / 0.5131 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.4298, allocations: 3.938 kB / 0.5131 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.000834/0.4307, allocations: 483.9 kB / 0.5135 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/0.4307, allocations: 82.81 kB / 0.5136 GB, free: 452 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002478/0.431, allocations: 249 kB / 0.5139 GB, free: 304 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/0.431, allocations: 31.08 kB / 0.5139 GB, free: 268 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.4311, allocations: 197.5 kB / 0.5141 GB, free: 96 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.455e-05/0.4312, allocations: 40.95 kB / 0.5141 GB, free: 64 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.723e-05/0.4312, allocations: 44.25 kB / 0.5142 GB, free: 32 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.4314, allocations: 340.6 kB / 0.5145 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.136e-05/0.4315, allocations: 39.5 kB / 0.5145 GB, free: 15.69 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.4316, allocations: 128.8 kB / 0.5147 GB, free: 15.55 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002532/0.4319, allocations: 194.9 kB / 0.5148 GB, free: 15.37 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4319, allocations: 1.125 kB / 0.5148 GB, free: 15.37 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003306/0.4323, allocations: 208.8 kB / 0.515 GB, free: 15.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.4323, allocations: 6.609 kB / 0.515 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/0.4323, allocations: 4.5 kB / 0.515 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.227e-05/0.4323, allocations: 4.906 kB / 0.5151 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.4325, allocations: 47.7 kB / 0.5151 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.278e-05/0.4325, allocations: 6.156 kB / 0.5151 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001386/0.4327, allocations: 11.84 kB / 0.5151 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.934e-05/0.4327, allocations: 10.03 kB / 0.5151 GB, free: 15.25 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.0001674/0.4329, allocations: 159.4 kB / 0.5153 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.346e-05/0.4329, allocations: 22.11 kB / 0.5153 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002996/0.4332, allocations: 134.4 kB / 0.5154 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.4333, allocations: 1.438 kB / 0.5154 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.4333, allocations: 5.344 kB / 0.5154 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/0.4333, allocations: 4.781 kB / 0.5154 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006568/0.434, allocations: 473.3 kB / 0.5159 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.434, allocations: 2.141 kB / 0.5159 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001288/0.4341, allocations: 20.39 kB / 0.5159 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.4341, allocations: 1.875 kB / 0.5159 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/0.4341, allocations: 6.062 kB / 0.5159 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.4341, allocations: 1.406 kB / 0.5159 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.4342, allocations: 1.312 kB / 0.5159 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000357/0.4345, allocations: 289.3 kB / 0.5162 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.045e-05/0.4346, allocations: 95.64 kB / 0.5163 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.4346, allocations: 10.61 kB / 0.5163 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.806e-05/0.4347, allocations: 1.062 kB / 0.5163 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.565e-05/0.4348, allocations: 7.219 kB / 0.5163 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.4348, allocations: 16.11 kB / 0.5163 GB, free: 14.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00018/0.435, allocations: 171.6 kB / 0.5165 GB, free: 14.19 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.435, allocations: 0.7812 kB / 0.5165 GB, free: 14.19 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003431/0.4353, allocations: 44.17 kB / 0.5165 GB, free: 14.18 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.0006001/0.4359, allocations: 0.8164 MB / 0.5173 GB, free: 13.44 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002491/0.4362, allocations: 113 kB / 0.5174 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4362, allocations: 0 / 0.5174 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.324e-05/0.4363, allocations: 51.41 kB / 0.5175 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005581/0.4369, allocations: 61.05 kB / 0.5175 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003305/0.4402, allocations: 2.44 MB / 0.5199 GB, free: 11.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004395/0.4407, allocations: 0.7744 MB / 0.5207 GB, free: 10.79 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001916/0.4409, allocations: 34.28 kB / 0.5207 GB, free: 10.77 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001442/0.441, allocations: 80.42 kB / 0.5208 GB, free: 10.71 MB / 398.1 MB Notification: Performance of SimCode: time 7.92e-07/0.441, allocations: 0.9375 kB / 0.5208 GB, free: 10.71 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02526/0.4663, allocations: 4.681 MB / 0.5254 GB, free: 10.12 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.93/8.396, allocations: 12.88 kB / 0.5254 GB, free: 10.11 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]