Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.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.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",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.0009713/0.0009714, allocations: 103.2 kB / 16.5 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.00103/0.00103, allocations: 186.6 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.216/1.216, allocations: 222.9 MB / 241.1 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1629/0.1629, allocations: 38.04 MB / 329.3 MB, free: 9.055 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001087/0.001087, allocations: 58.61 kB / 398.2 MB, free: 34.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09039/0.0915, allocations: 58.07 MB / 456.3 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.006041/0.09759, allocations: 4.686 MB / 460.9 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001733/0.09937, allocations: 1.095 MB / 462 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001964/0.09958, allocations: 23.88 kB / 462.1 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001864/0.09978, allocations: 35.7 kB / 462.1 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004064/0.1002, allocations: 171.2 kB / 462.3 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001811/0.1004, allocations: 71.92 kB / 462.3 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004626/0.1009, allocations: 0.5608 MB / 462.9 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001885/0.1011, allocations: 105.6 kB / 463 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002042/0.1013, allocations: 159.3 kB / 463.1 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002986/0.1016, allocations: 207.2 kB / 463.4 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.804e-05/0.1016, allocations: 16 kB / 463.4 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.687e-05/0.1017, allocations: 12 kB / 463.4 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.1018, allocations: 107.7 kB / 463.5 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001358/0.102, allocations: 143.2 kB / 463.6 MB, free: 1.004 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002564/0.1022, allocations: 298.8 kB / 463.9 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1022, allocations: 0 / 463.9 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1022, allocations: 0 / 463.9 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.1023, allocations: 0 / 463.9 MB, free: 0.7109 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0009697/0.1032, allocations: 0.6283 MB / 464.5 MB, free: 36 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.1033, allocations: 8.031 kB / 464.6 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.963e-05/0.1033, allocations: 58.73 kB / 464.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.117e-05/0.1034, allocations: 36.55 kB / 464.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003562/0.1038, allocations: 319 kB / 465 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.1038, allocations: 20.94 kB / 465 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.179e-05/0.1038, allocations: 27.94 kB / 465 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004143/0.1043, allocations: 312.5 kB / 465.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.1043, allocations: 4 kB / 465.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.302e-05/0.1043, allocations: 11.98 kB / 465.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-06/0.1043, allocations: 8 kB / 465.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003192/0.1046, allocations: 217.5 kB / 465.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001326/0.106, allocations: 1.352 MB / 466.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003028/0.1063, allocations: 145.2 kB / 467 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.904e-05/0.1064, allocations: 69.62 kB / 467.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.452e-05/0.1064, allocations: 0 / 467.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.161e-05/0.1064, allocations: 34.56 kB / 467.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.042e-06/0.1064, allocations: 0 / 467.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006833/0.1071, allocations: 363.7 kB / 467.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.797e-05/0.1072, allocations: 89.23 kB / 467.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002122/0.1074, allocations: 258.9 kB / 467.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.1074, allocations: 25.7 kB / 467.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.1075, allocations: 211.5 kB / 468.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.793e-05/0.1076, allocations: 43.44 kB / 468.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.398e-05/0.1077, allocations: 49.61 kB / 468.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.642e-05/0.1078, allocations: 338.8 kB / 468.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.285e-05/0.1079, allocations: 51.97 kB / 468.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.108, allocations: 153.6 kB / 468.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002437/0.1082, allocations: 228.6 kB / 468.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1082, allocations: 0 / 468.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000323/0.1086, allocations: 252.9 kB / 469.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.1086, allocations: 8 kB / 469.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1086, allocations: 4 kB / 469.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.1086, allocations: 4 kB / 469.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.1088, allocations: 47.91 kB / 469.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/0.1088, allocations: 12.38 kB / 469.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.1089, allocations: 16 kB / 469.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.109, allocations: 11.94 kB / 469.3 MB, free: 10.94 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 (25): * Single equations (assignments): 25 * 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.0001282/0.1091, allocations: 161.7 kB / 469.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.2e-05/0.1092, allocations: 23.72 kB / 469.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003/0.1095, allocations: 195.3 kB / 469.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.1095, allocations: 4 kB / 469.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.1095, allocations: 0 / 469.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.1095, allocations: 0 / 469.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005787/0.1101, allocations: 0.5606 MB / 470.2 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.1101, allocations: 3.984 kB / 470.2 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001391/0.1102, allocations: 31.92 kB / 470.2 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1102, allocations: 0 / 470.2 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/0.1103, allocations: 8 kB / 470.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.115e-06/0.1103, allocations: 3.938 kB / 470.2 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1103, allocations: 0 / 470.2 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002755/0.1106, allocations: 292.9 kB / 470.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.358e-05/0.1106, allocations: 92.83 kB / 470.6 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.336e-05/0.1107, allocations: 11.94 kB / 470.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001148/0.1108, allocations: 3.938 kB / 470.6 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.216e-05/0.1108, allocations: 19.92 kB / 470.7 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.077e-05/0.1108, allocations: 7.938 kB / 470.7 MB, free: 9.422 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001342/0.111, allocations: 186 kB / 470.8 MB, free: 9.246 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.111, allocations: 0 / 470.8 MB, free: 9.246 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003028/0.1113, allocations: 51.98 kB / 470.9 MB, free: 9.195 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (17): * Single equations (assignments): 16 * 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.000484/0.1118, allocations: 0.8292 MB / 471.7 MB, free: 8.336 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002409/0.112, allocations: 151.8 kB / 471.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.112, allocations: 0 / 471.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.1121, allocations: 71.84 kB / 471.9 MB, free: 8.117 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004446/0.1126, allocations: 65.78 kB / 472 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002411/0.115, allocations: 2.636 MB / 474.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002879/0.1153, allocations: 0.7872 MB / 475.4 MB, free: 4.418 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001347/0.1154, allocations: 42.27 kB / 475.5 MB, free: 4.375 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/0.1156, allocations: 91.41 kB / 475.6 MB, free: 4.285 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1156, allocations: 0 / 475.6 MB, free: 4.285 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01329/0.1289, allocations: 4.658 MB / 480.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001957/0.1291, allocations: 203 kB / 480.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.704/1.833, allocations: 0 / 480.4 MB, free: 15.5 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.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),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,res.S_nom,res.V_nom,res.dynType,res.f_nom,res.i,res.i_start,res.puUnits,res.r,res.term.i[1],res.term.i[2],res.term.v[1],res.term.v[2],res.v,res.v_start,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[1],voltage.alpha0[2],voltage.alpha0[3],voltage.f,voltage.fType,voltage.h[1],voltage.h[2],voltage.h[3],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[1],voltage.v0eff[2],voltage.v0eff[3],voltage.vPhasor_in[1],voltage.vPhasor_in[2]