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.001072/0.001072, allocations: 102.7 kB / 16.62 MB, free: 6.816 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.001068/0.001068, allocations: 189.8 kB / 17.55 MB, free: 5.941 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.281/1.281, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1673/0.1673, allocations: 38.03 MB / 329.4 MB, free: 9.051 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001226, allocations: 61.03 kB / 398.4 MB, free: 34.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09487/0.09611, allocations: 58.07 MB / 456.5 MB, free: 8.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.00616/0.1023, allocations: 4.721 MB / 461.2 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002141/0.1045, allocations: 1.087 MB / 462.3 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004326/0.105, allocations: 23.81 kB / 462.3 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002608/0.1053, allocations: 39.69 kB / 462.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006475/0.1059, allocations: 167.2 kB / 462.5 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002681/0.1062, allocations: 79.92 kB / 462.6 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005078/0.1067, allocations: 406.5 kB / 463 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002202/0.107, allocations: 114.2 kB / 463.1 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003193/0.1073, allocations: 175.3 kB / 463.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003909/0.1077, allocations: 195.3 kB / 463.4 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.299e-05/0.1078, allocations: 20 kB / 463.5 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.508e-05/0.1078, allocations: 20 kB / 463.5 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.108, allocations: 87.72 kB / 463.6 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001842/0.1082, allocations: 139.2 kB / 463.7 MB, free: 1.055 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003408/0.1085, allocations: 287 kB / 464 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1085, allocations: 0 / 464 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1085, allocations: 0 / 464 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.728e-05/0.1086, allocations: 0 / 464 MB, free: 0.7734 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.001133/0.1097, allocations: 0.597 MB / 464.6 MB, free: 132 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/0.1098, allocations: 15.89 kB / 464.6 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.997e-05/0.1099, allocations: 58.72 kB / 464.7 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.886e-05/0.1099, allocations: 32.56 kB / 464.7 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004929/0.1104, allocations: 315 kB / 465 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.515e-05/0.1105, allocations: 20.38 kB / 465 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.221e-05/0.1105, allocations: 23.94 kB / 465 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004601/0.111, allocations: 290.8 kB / 465.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.111, allocations: 3.938 kB / 465.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.715e-05/0.1111, allocations: 12 kB / 465.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.1111, allocations: 4 kB / 465.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003012/0.1114, allocations: 181 kB / 465.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001537/0.1129, allocations: 1.232 MB / 466.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002924/0.1132, allocations: 117.2 kB / 466.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.957e-05/0.1133, allocations: 41.77 kB / 466.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.017e-05/0.1133, allocations: 8 kB / 466.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.1134, allocations: 34.5 kB / 466.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.442e-06/0.1134, allocations: 0 / 466.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007925/0.1142, allocations: 484.4 kB / 467.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.775e-05/0.1142, allocations: 77.11 kB / 467.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002269/0.1145, allocations: 258.7 kB / 467.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.1145, allocations: 25.7 kB / 467.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.1146, allocations: 203.5 kB / 468 MB, free: 12.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.339e-05/0.1147, allocations: 43.45 kB / 468 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.771e-05/0.1147, allocations: 41.61 kB / 468.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.1149, allocations: 334.8 kB / 468.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.49e-05/0.1149, allocations: 31.97 kB / 468.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001351/0.1151, allocations: 135.7 kB / 468.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002318/0.1153, allocations: 192.6 kB / 468.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.1153, allocations: 4 kB / 468.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003192/0.1157, allocations: 209.9 kB / 468.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.1157, allocations: 4 kB / 468.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1157, allocations: 4 kB / 469 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.1157, allocations: 4 kB / 469 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.1159, allocations: 47.91 kB / 469 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.1159, allocations: 4 kB / 469 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.116, allocations: 19.91 kB / 469 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.1161, allocations: 12.25 kB / 469 MB, free: 11.26 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.0001468/0.1162, allocations: 149.8 kB / 469.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.476e-05/0.1163, allocations: 27.66 kB / 469.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002254/0.1165, allocations: 127.4 kB / 469.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.1165, allocations: 7.984 kB / 469.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.1165, allocations: 0 / 469.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1165, allocations: 3.938 kB / 469.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005126/0.117, allocations: 483.2 kB / 469.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1171, allocations: 0 / 469.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001249/0.1172, allocations: 24 kB / 469.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.1172, allocations: 0 / 469.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.1172, allocations: 11.92 kB / 469.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.1172, allocations: 4 kB / 469.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1172, allocations: 3.938 kB / 469.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003056/0.1175, allocations: 275.9 kB / 470.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.425e-05/0.1176, allocations: 96.86 kB / 470.2 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.072e-05/0.1177, allocations: 3.938 kB / 470.2 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.1178, allocations: 8 kB / 470.2 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.135e-05/0.1178, allocations: 7.984 kB / 470.2 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-06/0.1178, allocations: 4 kB / 470.2 MB, free: 9.938 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001376/0.118, allocations: 177.9 kB / 470.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.118, allocations: 0 / 470.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003111/0.1183, allocations: 48 kB / 470.5 MB, free: 9.719 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.0005532/0.1188, allocations: 0.8076 MB / 471.3 MB, free: 8.879 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002231/0.1191, allocations: 124 kB / 471.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1191, allocations: 0 / 471.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.154e-05/0.1192, allocations: 43.92 kB / 471.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000445/0.1196, allocations: 60.45 kB / 471.5 MB, free: 8.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002435/0.1221, allocations: 2.543 MB / 474 MB, free: 5.934 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.1224, allocations: 0.7752 MB / 474.8 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001308/0.1225, allocations: 34.27 kB / 474.9 MB, free: 5.094 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.1226, allocations: 87.39 kB / 474.9 MB, free: 5.008 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1226, allocations: 0 / 474.9 MB, free: 5.008 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01587/0.1385, allocations: 4.436 MB / 479.4 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002191/0.1387, allocations: 218.7 kB / 479.6 MB, free: 496 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.703/1.842, allocations: 8.062 kB / 479.6 MB, free: 488 kB / 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","/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),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]