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.001716/0.001716, allocations: 113 kB / 17.05 MB, free: 6.086 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.001943/0.001943, allocations: 188 kB / 17.99 MB, free: 5.184 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.386/1.386, 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.1792/0.1792, allocations: 38.04 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001994/0.001994, allocations: 67.89 kB / 457.7 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3463/0.3483, 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.005036/0.3534, allocations: 4.066 MB / 0.5076 GB, free: 4.656 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001401/0.3548, allocations: 0.9081 MB / 0.5085 GB, free: 4.012 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001728/0.355, allocations: 10.69 kB / 0.5085 GB, free: 4.008 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001959/0.3552, allocations: 50.25 kB / 0.5085 GB, free: 3.977 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004946/0.3557, allocations: 180.9 kB / 0.5087 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002297/0.356, allocations: 88.47 kB / 0.5088 GB, free: 3.824 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004567/0.3564, allocations: 401.2 kB / 0.5092 GB, free: 3.645 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000264/0.3567, allocations: 124.6 kB / 0.5093 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002579/0.357, allocations: 176.1 kB / 0.5095 GB, free: 3.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003517/0.3573, allocations: 181.7 kB / 0.5096 GB, free: 3.449 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.773e-05/0.3574, allocations: 19.66 kB / 0.5097 GB, free: 3.449 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.618e-05/0.3575, allocations: 20.22 kB / 0.5097 GB, free: 3.449 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.3576, allocations: 94.86 kB / 0.5098 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.3577, allocations: 140.7 kB / 0.5099 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004346/0.3582, allocations: 291.8 kB / 0.5102 GB, free: 3.203 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3582, allocations: 7.938 kB / 0.5102 GB, free: 3.195 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3582, allocations: 0 / 0.5102 GB, free: 3.195 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.3582, allocations: 0 / 0.5102 GB, free: 3.195 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.0009612/0.3592, allocations: 0.5962 MB / 0.5108 GB, free: 2.695 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.3592, allocations: 12.95 kB / 0.5108 GB, free: 2.691 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.603e-05/0.3593, allocations: 56.02 kB / 0.5108 GB, free: 2.641 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.615e-05/0.3594, allocations: 40.78 kB / 0.5109 GB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004838/0.3599, allocations: 335 kB / 0.5112 GB, free: 2.352 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.734e-05/0.3599, allocations: 25.09 kB / 0.5112 GB, free: 2.336 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.758e-05/0.3599, allocations: 22.25 kB / 0.5112 GB, free: 2.328 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004232/0.3604, allocations: 286.5 kB / 0.5115 GB, free: 2.156 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.3604, allocations: 1.094 kB / 0.5115 GB, free: 2.156 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.501e-05/0.3604, allocations: 19.09 kB / 0.5115 GB, free: 2.141 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.3604, allocations: 5.031 kB / 0.5115 GB, free: 2.141 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003041/0.3608, allocations: 182.1 kB / 0.5117 GB, free: 2.082 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.362, allocations: 1.23 MB / 0.5129 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002894/0.3623, allocations: 114.1 kB / 0.513 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.181e-05/0.3624, allocations: 44.3 kB / 0.5131 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.891e-05/0.3624, allocations: 0.9688 kB / 0.5131 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.862e-05/0.3624, allocations: 36.2 kB / 0.5131 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.3625, allocations: 0 / 0.5131 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007583/0.3632, allocations: 0.4895 MB / 0.5136 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.268e-05/0.3633, allocations: 84.05 kB / 0.5137 GB, free: 420 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002436/0.3635, allocations: 252.5 kB / 0.5139 GB, free: 268 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.084e-05/0.3635, allocations: 26.36 kB / 0.5139 GB, free: 236 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.3636, allocations: 202.8 kB / 0.5141 GB, free: 60 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.165e-05/0.3637, allocations: 36 kB / 0.5141 GB, free: 32 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.476e-05/0.3638, allocations: 48.62 kB / 0.5142 GB, free: 15.99 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.364, allocations: 332.3 kB / 0.5145 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.107e-05/0.364, allocations: 40.23 kB / 0.5145 GB, free: 15.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001526/0.3642, allocations: 128 kB / 0.5147 GB, free: 15.52 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002576/0.3645, allocations: 199.8 kB / 0.5149 GB, free: 15.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3645, allocations: 1.125 kB / 0.5149 GB, free: 15.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003213/0.3648, allocations: 204.7 kB / 0.5151 GB, free: 15.23 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.3648, allocations: 8.031 kB / 0.5151 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.3648, allocations: 4.328 kB / 0.5151 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.022e-05/0.3649, allocations: 8.344 kB / 0.5151 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001692/0.3651, allocations: 47.89 kB / 0.5151 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.3651, allocations: 9.219 kB / 0.5151 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001119/0.3652, allocations: 9.219 kB / 0.5151 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.906e-05/0.3652, allocations: 12.48 kB / 0.5152 GB, free: 15.21 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.0001777/0.3654, allocations: 149 kB / 0.5153 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.985e-05/0.3655, allocations: 23.55 kB / 0.5153 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002549/0.3657, allocations: 141.8 kB / 0.5155 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.3657, allocations: 1.75 kB / 0.5155 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3657, allocations: 1.188 kB / 0.5155 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.3657, allocations: 6.203 kB / 0.5155 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006703/0.3664, allocations: 471.8 kB / 0.5159 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.3664, allocations: 2.047 kB / 0.5159 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.3666, allocations: 25.28 kB / 0.5159 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-06/0.3666, allocations: 1.344 kB / 0.5159 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.775e-05/0.3666, allocations: 9.516 kB / 0.5159 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.3666, allocations: 5.812 kB / 0.516 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3666, allocations: 1.438 kB / 0.516 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000371/0.367, allocations: 279.3 kB / 0.5162 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.691e-05/0.3671, allocations: 96.67 kB / 0.5163 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.429e-05/0.3671, allocations: 5.516 kB / 0.5163 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.887e-05/0.3672, allocations: 1.969 kB / 0.5163 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.394e-05/0.3673, allocations: 18.81 kB / 0.5163 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.3673, allocations: 8.031 kB / 0.5163 GB, free: 14.26 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001812/0.3675, allocations: 172.1 kB / 0.5165 GB, free: 14.15 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3675, allocations: 0 / 0.5165 GB, free: 14.15 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003238/0.3678, allocations: 44.03 kB / 0.5166 GB, free: 14.15 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.0006668/0.3685, allocations: 0.8168 MB / 0.5173 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002344/0.3687, allocations: 115.7 kB / 0.5175 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.3687, allocations: 4.875 kB / 0.5175 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.117e-05/0.3688, allocations: 47.2 kB / 0.5175 GB, free: 13.35 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004877/0.3693, allocations: 56.38 kB / 0.5176 GB, free: 13.33 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003418/0.3727, allocations: 2.445 MB / 0.5199 GB, free: 11.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004821/0.3733, allocations: 0.7702 MB / 0.5207 GB, free: 10.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000147/0.3734, allocations: 33.7 kB / 0.5207 GB, free: 10.74 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.3736, allocations: 85.48 kB / 0.5208 GB, free: 10.68 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3736, allocations: 0 / 0.5208 GB, free: 10.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02948/0.403, allocations: 4.602 MB / 0.5253 GB, free: 10.09 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.62/9.023, allocations: 5.438 kB / 0.5253 GB, free: 10.09 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]