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.001032/0.001032, allocations: 89.78 kB / 16.65 MB, free: 6.535 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.00106/0.00106, allocations: 172.9 kB / 17.56 MB, free: 6.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.182/1.182, allocations: 223.2 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1616/0.1616, allocations: 38.09 MB / 330.8 MB, free: 8.516 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002695/0.0002695, allocations: 8 kB / 400.8 MB, free: 34.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08071/0.08099, allocations: 59.17 MB / 460 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.00463/0.08565, allocations: 4.335 MB / 464.3 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001717/0.08739, allocations: 1.087 MB / 465.4 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002526/0.08766, allocations: 19.88 kB / 465.4 MB, free: 1.465 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001511/0.08782, allocations: 39.69 kB / 465.5 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004327/0.08826, allocations: 163.2 kB / 465.6 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001896/0.08846, allocations: 79.91 kB / 465.7 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005043/0.08898, allocations: 0.5217 MB / 466.2 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.08918, allocations: 97.7 kB / 466.3 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002535/0.08944, allocations: 151.2 kB / 466.5 MB, free: 432 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003152/0.08977, allocations: 175.3 kB / 466.6 MB, free: 256 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.242e-05/0.08982, allocations: 12 kB / 466.6 MB, free: 244 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.154e-05/0.08986, allocations: 12 kB / 466.7 MB, free: 232 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001024/0.08997, allocations: 79.72 kB / 466.7 MB, free: 152 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001709/0.09015, allocations: 161 kB / 466.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002544/0.09041, allocations: 266.8 kB / 467.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.09042, allocations: 0 / 467.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.09043, allocations: 0 / 467.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.09045, allocations: 0 / 467.2 MB, free: 15.72 MB / 350.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.0008168/0.09127, allocations: 0.5504 MB / 467.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.09132, allocations: 12.03 kB / 467.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.199e-05/0.09139, allocations: 58.72 kB / 467.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.54e-05/0.09146, allocations: 32.56 kB / 467.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003898/0.09185, allocations: 318.9 kB / 468.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.782e-05/0.09188, allocations: 24.38 kB / 468.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.667e-05/0.09193, allocations: 20 kB / 468.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004037/0.09234, allocations: 290.8 kB / 468.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.09236, allocations: 7.938 kB / 468.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.434e-05/0.09239, allocations: 16 kB / 468.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.09241, allocations: 4 kB / 468.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002886/0.0927, allocations: 180.9 kB / 468.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001285/0.09399, allocations: 1.232 MB / 469.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002749/0.09428, allocations: 117.1 kB / 470 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.147e-05/0.09436, allocations: 45.77 kB / 470 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/0.09438, allocations: 0 / 470 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/0.09441, allocations: 38.56 kB / 470.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 9.72e-07/0.09442, allocations: 0 / 470.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007578/0.09518, allocations: 488.5 kB / 470.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.09523, allocations: 77.11 kB / 470.6 MB, free: 11.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002241/0.09546, allocations: 254.5 kB / 470.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.09549, allocations: 29.7 kB / 470.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.09561, allocations: 195.6 kB / 471.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.163e-05/0.09565, allocations: 35.55 kB / 471.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.943e-05/0.0957, allocations: 21.72 kB / 471.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.09581, allocations: 334.8 kB / 471.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.653e-05/0.09588, allocations: 36.02 kB / 471.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001224/0.09601, allocations: 131 kB / 471.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002168/0.09624, allocations: 197.4 kB / 471.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.09625, allocations: 0 / 471.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002944/0.09655, allocations: 212.9 kB / 472 MB, free: 10.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.09657, allocations: 8 kB / 472.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.09658, allocations: 4 kB / 472.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.0966, allocations: 4 kB / 472.1 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001558/0.09676, allocations: 43.92 kB / 472.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.09678, allocations: 12.42 kB / 472.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.0969, allocations: 19.88 kB / 472.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.374e-05/0.09692, allocations: 8 kB / 472.1 MB, free: 10.27 MB / 350.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.000126/0.09705, allocations: 145.8 kB / 472.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.129e-05/0.0971, allocations: 23.72 kB / 472.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002299/0.09733, allocations: 135.3 kB / 472.4 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.09735, allocations: 0 / 472.4 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.09735, allocations: 0 / 472.4 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.09736, allocations: 7.938 kB / 472.4 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005059/0.09788, allocations: 479.2 kB / 472.9 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.09789, allocations: 0 / 472.9 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001332/0.09803, allocations: 31.92 kB / 472.9 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.09804, allocations: 0 / 472.9 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.09806, allocations: 7.938 kB / 473 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.09807, allocations: 0 / 473 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.09807, allocations: 0 / 473 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003056/0.09838, allocations: 288.9 kB / 473.2 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.767e-05/0.09845, allocations: 92.86 kB / 473.3 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.049e-05/0.09849, allocations: 7.938 kB / 473.3 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.965e-05/0.09859, allocations: 4 kB / 473.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.457e-05/0.09862, allocations: 7.984 kB / 473.3 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.387e-06/0.09864, allocations: 4 kB / 473.4 MB, free: 8.945 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001495/0.09879, allocations: 174 kB / 473.5 MB, free: 8.777 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.493e-06/0.0988, allocations: 0 / 473.5 MB, free: 8.777 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000311/0.09912, allocations: 51.94 kB / 473.6 MB, free: 8.727 MB / 350.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.0005137/0.09964, allocations: 0.8077 MB / 474.4 MB, free: 7.887 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002008/0.09985, allocations: 119.7 kB / 474.5 MB, free: 7.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.09986, allocations: 4 kB / 474.5 MB, free: 7.766 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.942e-05/0.09994, allocations: 39.92 kB / 474.5 MB, free: 7.727 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004806/0.1004, allocations: 64.78 kB / 474.6 MB, free: 7.668 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002504/0.1029, allocations: 2.577 MB / 477.2 MB, free: 4.906 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000323/0.1033, allocations: 0.7638 MB / 477.9 MB, free: 4.117 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000129/0.1034, allocations: 38.27 kB / 478 MB, free: 4.074 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.1035, allocations: 91.33 kB / 478.1 MB, free: 3.984 MB / 350.1 MB Notification: Performance of SimCode: time 7.02e-07/0.1035, allocations: 4 kB / 478.1 MB, free: 3.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2531/0.3566, allocations: 4.244 MB / 482.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002184/0.3569, allocations: 211.2 kB / 482.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.872/2.229, allocations: 4 kB / 482.5 MB, free: 15.65 MB / 366.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","../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),der(voltage.theta),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]