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.0008503/0.0008504, allocations: 92.62 kB / 16.65 MB, free: 6.262 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.001033/0.001033, allocations: 180.5 kB / 17.56 MB, free: 5.875 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.244/1.244, allocations: 223.3 MB / 241.6 MB, free: 14.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1646/0.1646, allocations: 38.09 MB / 330.8 MB, free: 8.52 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000276/0.0002761, allocations: 8 kB / 400.8 MB, free: 34.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08545/0.08574, allocations: 59.17 MB / 460 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.004522/0.09029, allocations: 4.467 MB / 464.5 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001503/0.09182, allocations: 1.107 MB / 465.6 MB, free: 1.332 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001745/0.092, allocations: 19.88 kB / 465.6 MB, free: 1.312 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000141/0.09215, allocations: 43.62 kB / 465.6 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004123/0.09258, allocations: 187.2 kB / 465.8 MB, free: 1.086 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001734/0.09276, allocations: 87.89 kB / 465.9 MB, free: 1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005761/0.09335, allocations: 0.6309 MB / 466.5 MB, free: 376 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.09357, allocations: 127.4 kB / 466.6 MB, free: 252 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002221/0.0938, allocations: 171.1 kB / 466.8 MB, free: 80 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003421/0.09415, allocations: 239.1 kB / 467 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.068e-05/0.0942, allocations: 12 kB / 467.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.154e-05/0.09425, allocations: 20 kB / 467.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.09437, allocations: 107.7 kB / 467.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001639/0.09454, allocations: 180.8 kB / 467.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002992/0.09485, allocations: 358.5 kB / 467.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.09486, allocations: 7.938 kB / 467.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.09486, allocations: 0 / 467.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.9e-06/0.09488, allocations: 0 / 467.7 MB, free: 15.16 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001056/0.09594, allocations: 0.6323 MB / 468.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.09598, allocations: 12.03 kB / 468.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.646e-05/0.09607, allocations: 62.72 kB / 468.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.137e-05/0.09614, allocations: 36.47 kB / 468.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005212/0.09667, allocations: 386.9 kB / 468.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.0967, allocations: 24.56 kB / 468.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.191e-05/0.09675, allocations: 24 kB / 468.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004786/0.09723, allocations: 360.7 kB / 469.2 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.09725, allocations: 0 / 469.2 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.588e-05/0.09728, allocations: 12 kB / 469.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.09729, allocations: 8 kB / 469.3 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003624/0.09766, allocations: 257.9 kB / 469.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001494/0.09916, allocations: 1.442 MB / 470.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002404/0.09941, allocations: 165 kB / 471.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001146/0.09954, allocations: 81.73 kB / 471.2 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.09956, allocations: 0 / 471.2 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.09959, allocations: 38.5 kB / 471.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 3.066e-06/0.0996, allocations: 0 / 471.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.000975/0.1006, allocations: 0.6782 MB / 471.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.473e-05/0.1006, allocations: 89.09 kB / 472 MB, free: 10.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002729/0.1009, allocations: 292.5 kB / 472.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.1009, allocations: 33.64 kB / 472.3 MB, free: 10.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.1011, allocations: 219.5 kB / 472.5 MB, free: 10 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.268e-05/0.1011, allocations: 55.25 kB / 472.6 MB, free: 9.945 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.656e-05/0.1012, allocations: 25.72 kB / 472.6 MB, free: 9.914 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.1013, allocations: 342.9 kB / 472.9 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.1014, allocations: 67.95 kB / 473 MB, free: 9.504 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001598/0.1016, allocations: 176.7 kB / 473.2 MB, free: 9.285 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002796/0.1019, allocations: 252 kB / 473.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1019, allocations: 8 kB / 473.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003622/0.1022, allocations: 280.9 kB / 473.7 MB, free: 8.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.1023, allocations: 4 kB / 473.7 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.1023, allocations: 4 kB / 473.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.1023, allocations: 4.438 kB / 473.7 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002266/0.1025, allocations: 59.91 kB / 473.8 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.1025, allocations: 11.94 kB / 473.8 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001488/0.1027, allocations: 19.83 kB / 473.8 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.836e-05/0.1027, allocations: 16 kB / 473.8 MB, free: 8.59 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.0001433/0.1029, allocations: 165.7 kB / 474 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.621e-05/0.1029, allocations: 31.59 kB / 474 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003477/0.1033, allocations: 227.5 kB / 474.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.1033, allocations: 8 kB / 474.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.1033, allocations: 0 / 474.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.1033, allocations: 3.984 kB / 474.2 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006634/0.104, allocations: 0.6186 MB / 474.9 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.104, allocations: 0 / 474.9 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001795/0.1042, allocations: 47.89 kB / 474.9 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.1042, allocations: 4 kB / 474.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.1042, allocations: 4 kB / 474.9 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.1042, allocations: 0 / 474.9 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.1042, allocations: 8.031 kB / 474.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004644/0.1047, allocations: 429.9 kB / 475.3 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.524e-05/0.1048, allocations: 112.7 kB / 475.5 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.305e-05/0.1048, allocations: 4 kB / 475.5 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.105, allocations: 11.98 kB / 475.5 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.666e-05/0.105, allocations: 16.05 kB / 475.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-05/0.105, allocations: 7.938 kB / 475.5 MB, free: 6.801 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001825/0.1052, allocations: 215 kB / 475.7 MB, free: 6.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1052, allocations: 0 / 475.7 MB, free: 6.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003104/0.1055, allocations: 60 kB / 475.8 MB, free: 6.531 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.0006742/0.1062, allocations: 0.9519 MB / 476.7 MB, free: 5.547 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002779/0.1065, allocations: 183.7 kB / 476.9 MB, free: 5.367 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1065, allocations: 0.9375 kB / 476.9 MB, free: 5.367 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001195/0.1066, allocations: 91.88 kB / 477 MB, free: 5.277 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00047/0.1071, allocations: 60.69 kB / 477 MB, free: 5.219 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002873/0.11, allocations: 3.055 MB / 480.1 MB, free: 1.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003289/0.1103, allocations: 0.8067 MB / 480.9 MB, free: 1.148 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001659/0.1105, allocations: 54.94 kB / 481 MB, free: 1.094 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.1107, allocations: 107.4 kB / 481.1 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1107, allocations: 0 / 481.1 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1793/0.2899, allocations: 5.569 MB / 486.6 MB, free: 11.58 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001807/0.2901, allocations: 198.6 kB / 486.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.916/2.206, allocations: 0 / 486.8 MB, free: 11.33 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