Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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.LoadAC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",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.001273/0.001273, allocations: 109.3 kB / 16.62 MB, free: 6.812 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.001192/0.001192, allocations: 189.8 kB / 17.55 MB, free: 5.949 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.261/1.261, 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.1672/0.1672, allocations: 38.04 MB / 329.4 MB, free: 8.965 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 59.28 kB / 398.4 MB, free: 34.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09151/0.09285, allocations: 58.07 MB / 456.5 MB, free: 8.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.006476/0.09936, allocations: 4.854 MB / 461.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002276/0.1017, allocations: 1.13 MB / 462.4 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000431/0.1021, allocations: 23.88 kB / 462.5 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002433/0.1024, allocations: 43.64 kB / 462.5 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000658/0.1031, allocations: 167.2 kB / 462.7 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002349/0.1033, allocations: 91.89 kB / 462.8 MB, free: 2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006576/0.104, allocations: 486.3 kB / 463.2 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00034/0.1043, allocations: 147.6 kB / 463.4 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003664/0.1047, allocations: 211.1 kB / 463.6 MB, free: 1.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005671/0.1053, allocations: 255.1 kB / 463.8 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.964e-05/0.1053, allocations: 28 kB / 463.9 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.399e-05/0.1054, allocations: 28 kB / 463.9 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003165/0.1057, allocations: 123.7 kB / 464 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001871/0.1059, allocations: 175.1 kB / 464.2 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005269/0.1065, allocations: 374.7 kB / 464.5 MB, free: 212 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1065, allocations: 0 / 464.5 MB, free: 212 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1065, allocations: 7.938 kB / 464.6 MB, free: 204 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.1065, allocations: 4 kB / 464.6 MB, free: 200 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001402/0.1079, allocations: 0.6867 MB / 465.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.108, allocations: 11.89 kB / 465.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001598/0.1081, allocations: 70.72 kB / 465.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.28e-05/0.1082, allocations: 36.47 kB / 465.4 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006961/0.1089, allocations: 382.9 kB / 465.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.1089, allocations: 20.56 kB / 465.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.706e-05/0.109, allocations: 24 kB / 465.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007621/0.1098, allocations: 360.7 kB / 466.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.1098, allocations: 0 / 466.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.1098, allocations: 15.98 kB / 466.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.1098, allocations: 8 kB / 466.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005051/0.1104, allocations: 257.9 kB / 466.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001961/0.1123, allocations: 1.442 MB / 467.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002496/0.1126, allocations: 161.1 kB / 468 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/0.1127, allocations: 77.67 kB / 468.1 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.1127, allocations: 4 kB / 468.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.242e-05/0.1128, allocations: 42.5 kB / 468.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.1128, allocations: 0 / 468.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001227/0.1141, allocations: 0.6786 MB / 468.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.477e-05/0.1141, allocations: 81.09 kB / 468.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003292/0.1145, allocations: 300.4 kB / 469.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.377e-05/0.1145, allocations: 37.64 kB / 469.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.1147, allocations: 215.8 kB / 469.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.71e-05/0.1147, allocations: 59.19 kB / 469.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.355e-05/0.1148, allocations: 49.61 kB / 469.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.1149, allocations: 338.8 kB / 469.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001263/0.1151, allocations: 67.95 kB / 469.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.1152, allocations: 176.4 kB / 470.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002962/0.1155, allocations: 256.6 kB / 470.4 MB, free: 9.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1156, allocations: 0 / 470.4 MB, free: 9.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004039/0.116, allocations: 285.3 kB / 470.6 MB, free: 9.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.116, allocations: 8 kB / 470.6 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.116, allocations: 7.984 kB / 470.6 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.116, allocations: 4 kB / 470.7 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002596/0.1163, allocations: 59.91 kB / 470.7 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.1163, allocations: 7.938 kB / 470.7 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001738/0.1165, allocations: 19.89 kB / 470.7 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.898e-05/0.1165, allocations: 12 kB / 470.7 MB, free: 9.543 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 (29): * Single equations (assignments): 29 * 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.0001864/0.1167, allocations: 165.7 kB / 470.9 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.206e-05/0.1168, allocations: 35.69 kB / 470.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003874/0.1172, allocations: 231.5 kB / 471.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.1172, allocations: 4 kB / 471.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.1172, allocations: 0 / 471.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.1172, allocations: 0 / 471.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007932/0.118, allocations: 0.6162 MB / 471.8 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.118, allocations: 0 / 471.8 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002019/0.1182, allocations: 47.95 kB / 471.8 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.1182, allocations: 0 / 471.8 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.672e-05/0.1182, allocations: 4 kB / 471.8 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.1183, allocations: 3.984 kB / 471.8 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1183, allocations: 0 / 471.8 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005759/0.1188, allocations: 424.6 kB / 472.3 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.488e-05/0.1189, allocations: 108.8 kB / 472.4 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.549e-05/0.119, allocations: 11.94 kB / 472.4 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001632/0.1192, allocations: 11.98 kB / 472.4 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.896e-05/0.1192, allocations: 7.984 kB / 472.4 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.551e-05/0.1192, allocations: 7.938 kB / 472.4 MB, free: 7.766 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000189/0.1194, allocations: 219 kB / 472.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1194, allocations: 0 / 472.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000329/0.1198, allocations: 60 kB / 472.7 MB, free: 7.492 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * 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 (20): * Single equations (assignments): 19 * 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.000716/0.1205, allocations: 0.9546 MB / 473.6 MB, free: 6.508 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004088/0.1209, allocations: 208.6 kB / 473.8 MB, free: 6.305 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1209, allocations: 0 / 473.8 MB, free: 6.305 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001252/0.121, allocations: 98.27 kB / 473.9 MB, free: 6.211 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004867/0.1215, allocations: 70.95 kB / 474 MB, free: 6.145 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003135/0.1247, allocations: 3 MB / 477 MB, free: 2.961 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/0.1251, allocations: 0.8102 MB / 477.8 MB, free: 2.125 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000187/0.1253, allocations: 58.94 kB / 477.9 MB, free: 2.066 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001516/0.1254, allocations: 111.3 kB / 478 MB, free: 1.957 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1254, allocations: 0 / 478 MB, free: 1.957 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01741/0.1428, allocations: 5.831 MB / 483.8 MB, free: 12.29 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003046/0.1432, allocations: 207.3 kB / 484 MB, free: 12.03 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.811/1.954, allocations: 0 / 484 MB, free: 12.03 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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(voltage.theta),der(zLoadAC.psi),grd.term.i,grd.term.v,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],trsSignal[1].s_end,trsSignal[1].s_start,trsSignal[1].t_change,trsSignal[1].t_duration,trsSignal[1].y,trsSignal[2].s_end,trsSignal[2].s_start,trsSignal[2].t_change,trsSignal[2].t_duration,trsSignal[2].y,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],zLoadAC.S_nom,zLoadAC.V_nom,zLoadAC.dynType,zLoadAC.i,zLoadAC.pq0[1],zLoadAC.pq0[2],zLoadAC.pq_in[1],zLoadAC.pq_in[2],zLoadAC.psi,zLoadAC.psi_start,zLoadAC.puUnits,zLoadAC.term.i[1],zLoadAC.term.i[2],zLoadAC.term.v[1],zLoadAC.term.v[2],zLoadAC.use_pq_in,zLoadAC.v