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.001391/0.001391, allocations: 106.7 kB / 16.51 MB, free: 6.652 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.001423/0.001423, allocations: 195.1 kB / 17.42 MB, free: 6.062 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.256/1.256, allocations: 222.9 MB / 241.1 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.166/0.166, allocations: 38.05 MB / 329.3 MB, free: 9.07 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 60.41 kB / 398.2 MB, free: 34.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09504/0.09621, allocations: 58.06 MB / 456.3 MB, free: 8.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.00497/0.1012, allocations: 4.71 MB / 461 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.1026, allocations: 1.095 MB / 462.1 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001629/0.1028, allocations: 27.81 kB / 462.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001525/0.1029, allocations: 39.69 kB / 462.1 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003473/0.1033, allocations: 155.2 kB / 462.3 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001572/0.1034, allocations: 79.91 kB / 462.4 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004256/0.1039, allocations: 0.5257 MB / 462.9 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001819/0.1041, allocations: 97.7 kB / 463 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001948/0.1043, allocations: 155.2 kB / 463.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002713/0.1046, allocations: 187.3 kB / 463.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.328e-05/0.1046, allocations: 12 kB / 463.3 MB, free: 1.332 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.324e-05/0.1046, allocations: 15.94 kB / 463.3 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.32e-05/0.1047, allocations: 95.72 kB / 463.4 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001265/0.1049, allocations: 143.2 kB / 463.6 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002427/0.1051, allocations: 267 kB / 463.8 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1051, allocations: 0 / 463.8 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of FrontEnd: time 6.91e-07/0.1051, allocations: 0 / 463.8 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.1051, allocations: 0 / 463.8 MB, free: 0.8203 MB / 334.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.0007705/0.1059, allocations: 0.6001 MB / 464.4 MB, free: 180 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.106, allocations: 12.03 kB / 464.4 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.59e-05/0.106, allocations: 62.72 kB / 464.5 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.604e-05/0.1061, allocations: 28.56 kB / 464.5 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003672/0.1065, allocations: 322.9 kB / 464.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.1065, allocations: 20.38 kB / 464.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.721e-05/0.1065, allocations: 24 kB / 464.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003545/0.1069, allocations: 294.8 kB / 465.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.1069, allocations: 0 / 465.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.016e-05/0.1069, allocations: 4 kB / 465.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.1069, allocations: 8 kB / 465.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002661/0.1072, allocations: 180.9 kB / 465.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001294/0.1085, allocations: 1.232 MB / 466.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002724/0.1088, allocations: 113.2 kB / 466.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.937e-05/0.1089, allocations: 45.7 kB / 466.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.1089, allocations: 4 kB / 466.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.455e-05/0.1089, allocations: 30.56 kB / 466.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.393e-06/0.1089, allocations: 4 kB / 466.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008066/0.1097, allocations: 481 kB / 467.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.54e-05/0.1098, allocations: 85.23 kB / 467.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002137/0.11, allocations: 250.6 kB / 467.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/0.11, allocations: 33.64 kB / 467.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/0.1102, allocations: 199.7 kB / 467.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.246e-05/0.1102, allocations: 39.45 kB / 467.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001243/0.1103, allocations: 49.61 kB / 467.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.1105, allocations: 338.8 kB / 468.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.701e-05/0.1106, allocations: 31.98 kB / 468.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/0.1107, allocations: 128.9 kB / 468.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002203/0.1109, allocations: 192.6 kB / 468.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.1109, allocations: 4 kB / 468.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002942/0.1112, allocations: 201.4 kB / 468.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.1113, allocations: 8.062 kB / 468.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.1113, allocations: 4 kB / 468.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.1113, allocations: 4 kB / 468.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001577/0.1115, allocations: 47.91 kB / 468.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.1115, allocations: 7.938 kB / 468.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001218/0.1116, allocations: 15.88 kB / 468.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.1116, allocations: 8 kB / 468.9 MB, free: 11.32 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.0001473/0.1118, allocations: 157.8 kB / 469 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.38e-05/0.1118, allocations: 23.72 kB / 469.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002535/0.1121, allocations: 127.4 kB / 469.2 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.1121, allocations: 4 kB / 469.2 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1121, allocations: 0 / 469.2 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.1121, allocations: 7.922 kB / 469.2 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005353/0.1127, allocations: 483.3 kB / 469.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1127, allocations: 0 / 469.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.1128, allocations: 23.98 kB / 469.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1128, allocations: 96 / 469.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.1128, allocations: 15.91 kB / 469.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.1129, allocations: 7.938 kB / 469.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1129, allocations: 0 / 469.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003451/0.1132, allocations: 273 kB / 470 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.706e-05/0.1133, allocations: 96.86 kB / 470.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.386e-05/0.1134, allocations: 15.98 kB / 470.1 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.727e-05/0.1135, allocations: 8 kB / 470.1 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.402e-05/0.1135, allocations: 4 kB / 470.1 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.869e-06/0.1135, allocations: 4 kB / 470.1 MB, free: 9.977 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001412/0.1137, allocations: 185.8 kB / 470.3 MB, free: 9.797 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1137, allocations: 0 / 470.3 MB, free: 9.797 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002912/0.114, allocations: 44 kB / 470.3 MB, free: 9.754 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.0005609/0.1145, allocations: 0.8103 MB / 471.1 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002043/0.1147, allocations: 108.6 kB / 471.2 MB, free: 8.809 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1147, allocations: 192 / 471.2 MB, free: 8.809 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.193e-05/0.1148, allocations: 51.92 kB / 471.3 MB, free: 8.758 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004565/0.1153, allocations: 48.52 kB / 471.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002608/0.1179, allocations: 2.539 MB / 473.9 MB, free: 5.992 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004/0.1183, allocations: 0.7716 MB / 474.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001285/0.1185, allocations: 30.28 kB / 474.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001228/0.1186, allocations: 91.39 kB / 474.8 MB, free: 5.07 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1186, allocations: 0 / 474.8 MB, free: 5.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01689/0.1355, allocations: 4.314 MB / 479.1 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002052/0.1357, allocations: 231.1 kB / 479.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.672/1.808, allocations: 0 / 479.3 MB, free: 0.6328 MB / 350.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]