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.001682/0.001682, allocations: 109.2 kB / 16.51 MB, free: 6.707 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.001576/0.001576, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.242/1.242, allocations: 222.9 MB / 241.1 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.1645/0.1645, allocations: 38.04 MB / 329.3 MB, free: 9.059 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001082/0.001082, allocations: 56.81 kB / 398.2 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08609/0.08719, allocations: 58.05 MB / 456.2 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.005495/0.09272, allocations: 4.846 MB / 461.1 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.09423, allocations: 1.119 MB / 462.2 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001745/0.09442, allocations: 27.88 kB / 462.2 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001631/0.09461, allocations: 43.62 kB / 462.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003848/0.095, allocations: 183.2 kB / 462.5 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001778/0.09519, allocations: 91.91 kB / 462.6 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005114/0.09571, allocations: 0.6309 MB / 463.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002053/0.09592, allocations: 127.4 kB / 463.3 MB, free: 1.332 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002107/0.09614, allocations: 183.1 kB / 463.5 MB, free: 1.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003277/0.09648, allocations: 251.1 kB / 463.7 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.981e-05/0.09654, allocations: 19.94 kB / 463.7 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.232e-05/0.0966, allocations: 20 kB / 463.8 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001149/0.09672, allocations: 115.6 kB / 463.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001551/0.09688, allocations: 163.1 kB / 464 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002831/0.09717, allocations: 366.6 kB / 464.4 MB, free: 240 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.09718, allocations: 0 / 464.4 MB, free: 240 kB / 334.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.09718, allocations: 0 / 464.4 MB, free: 240 kB / 334.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.09719, allocations: 0 / 464.4 MB, free: 240 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.001165/0.09836, allocations: 0.6868 MB / 465.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.0984, allocations: 12.03 kB / 465.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.056e-05/0.09847, allocations: 62.72 kB / 465.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.324e-05/0.09854, allocations: 40.47 kB / 465.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005026/0.09905, allocations: 394.9 kB / 465.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.09907, allocations: 16.56 kB / 465.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.955e-05/0.09912, allocations: 24 kB / 465.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000472/0.0996, allocations: 360.7 kB / 466 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.09962, allocations: 3.984 kB / 466 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.755e-05/0.09965, allocations: 12 kB / 466 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.09967, allocations: 7.938 kB / 466 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003737/0.1, allocations: 261.9 kB / 466.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001567/0.1016, allocations: 1.442 MB / 467.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002253/0.1019, allocations: 165 kB / 467.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001172/0.102, allocations: 81.73 kB / 467.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.818e-05/0.102, allocations: 0 / 467.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.209e-05/0.102, allocations: 38.5 kB / 468 MB, free: 12.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.184e-06/0.102, allocations: 4 kB / 468 MB, free: 12.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001009/0.1031, allocations: 0.6707 MB / 468.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.846e-05/0.1031, allocations: 85.09 kB / 468.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002623/0.1034, allocations: 300.4 kB / 469 MB, free: 11.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/0.1034, allocations: 25.7 kB / 469.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.1035, allocations: 219.6 kB / 469.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.194e-05/0.1036, allocations: 59.38 kB / 469.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.875e-05/0.1037, allocations: 53.61 kB / 469.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1038, allocations: 334.8 kB / 469.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/0.1039, allocations: 63.95 kB / 469.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001624/0.1041, allocations: 180.7 kB / 469.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002802/0.1044, allocations: 259.7 kB / 470.2 MB, free: 9.977 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.1044, allocations: 4 kB / 470.2 MB, free: 9.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003784/0.1047, allocations: 276.9 kB / 470.5 MB, free: 9.695 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.1048, allocations: 6.781 kB / 470.5 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.1048, allocations: 8 kB / 470.5 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.1048, allocations: 7.984 kB / 470.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000235/0.105, allocations: 63.84 kB / 470.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.1051, allocations: 7.938 kB / 470.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001574/0.1052, allocations: 19.92 kB / 470.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.1052, allocations: 12 kB / 470.6 MB, free: 9.574 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.000142/0.1054, allocations: 161.8 kB / 470.8 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.068e-05/0.1054, allocations: 31.56 kB / 470.8 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003525/0.1058, allocations: 238.1 kB / 471 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1058, allocations: 4 kB / 471 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1058, allocations: 4 kB / 471 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1058, allocations: 0 / 471 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006722/0.1065, allocations: 0.6278 MB / 471.7 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1065, allocations: 0 / 471.7 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001847/0.1067, allocations: 35.92 kB / 471.7 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.1067, allocations: 4.031 kB / 471.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.1067, allocations: 8 kB / 471.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.1068, allocations: 3.984 kB / 471.7 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.1068, allocations: 4 kB / 471.7 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004939/0.1073, allocations: 424.6 kB / 472.1 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.301e-05/0.1073, allocations: 108.7 kB / 472.2 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.917e-05/0.1074, allocations: 8.062 kB / 472.2 MB, free: 7.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001517/0.1075, allocations: 7.984 kB / 472.2 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.196e-05/0.1076, allocations: 19.97 kB / 472.3 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.1076, allocations: 7.938 kB / 472.3 MB, free: 7.781 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000185/0.1078, allocations: 215 kB / 472.5 MB, free: 7.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1078, allocations: 0 / 472.5 MB, free: 7.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003088/0.1081, allocations: 56 kB / 472.5 MB, free: 7.516 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.0007059/0.1088, allocations: 0.9549 MB / 473.5 MB, free: 6.531 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002804/0.1091, allocations: 184.4 kB / 473.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.1091, allocations: 4.25 kB / 473.7 MB, free: 6.348 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00012/0.1093, allocations: 87.89 kB / 473.8 MB, free: 6.262 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004745/0.1097, allocations: 74.92 kB / 473.8 MB, free: 6.191 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002954/0.1127, allocations: 3.013 MB / 476.8 MB, free: 3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003404/0.113, allocations: 0.8067 MB / 477.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001765/0.1132, allocations: 58.92 kB / 477.7 MB, free: 2.109 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001506/0.1134, allocations: 103.4 kB / 477.8 MB, free: 2.008 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1134, allocations: 0 / 477.8 MB, free: 2.008 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01544/0.1288, allocations: 5.67 MB / 483.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002041/0.1291, allocations: 199.2 kB / 483.7 MB, free: 12.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.774/1.903, allocations: 0 / 483.7 MB, free: 12.22 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","../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