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.0011/0.0011, allocations: 107.4 kB / 16.92 MB, free: 5.781 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.001119/0.001119, allocations: 191.5 kB / 17.85 MB, free: 5.195 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.286/1.286, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1707/0.1707, allocations: 38.04 MB / 329.7 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 62.61 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09563/0.09682, allocations: 58.07 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.005199/0.1021, allocations: 4.041 MB / 461 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.1034, allocations: 0.9036 MB / 461.9 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001344/0.1035, allocations: 11.94 kB / 461.9 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001853/0.1037, allocations: 47.56 kB / 462 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004196/0.1042, allocations: 179 kB / 462.2 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001964/0.1044, allocations: 95.81 kB / 462.2 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003703/0.1048, allocations: 406.5 kB / 462.6 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002098/0.105, allocations: 118.2 kB / 462.8 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002488/0.1052, allocations: 175.2 kB / 462.9 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003298/0.1056, allocations: 207.3 kB / 463.1 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.36e-05/0.1056, allocations: 20 kB / 463.2 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.146e-05/0.1057, allocations: 20 kB / 463.2 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001133/0.1058, allocations: 107.7 kB / 463.3 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001588/0.106, allocations: 151.2 kB / 463.4 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003043/0.1063, allocations: 306.8 kB / 463.7 MB, free: 1.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1063, allocations: 7.922 kB / 463.7 MB, free: 1.172 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1063, allocations: 0 / 463.7 MB, free: 1.172 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.1063, allocations: 0 / 463.7 MB, free: 1.172 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.001009/0.1073, allocations: 0.6128 MB / 464.3 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.1074, allocations: 19.88 kB / 464.4 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.725e-05/0.1074, allocations: 54.73 kB / 464.4 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.912e-05/0.1075, allocations: 36.47 kB / 464.5 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003925/0.1079, allocations: 323 kB / 464.8 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.682e-05/0.1079, allocations: 20.91 kB / 464.8 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.998e-05/0.108, allocations: 31.98 kB / 464.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004276/0.1084, allocations: 312.5 kB / 465.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.1084, allocations: 0 / 465.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.431e-05/0.1085, allocations: 12 kB / 465.1 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.1085, allocations: 4 kB / 465.1 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003254/0.1088, allocations: 221.5 kB / 465.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001381/0.1102, allocations: 1.348 MB / 466.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000304/0.1105, allocations: 149.1 kB / 466.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.156e-05/0.1106, allocations: 65.75 kB / 466.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.741e-05/0.1107, allocations: 4 kB / 466.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.215e-05/0.1107, allocations: 30.56 kB / 466.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.382e-06/0.1107, allocations: 0 / 466.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007206/0.1114, allocations: 372.3 kB / 467.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.311e-05/0.1115, allocations: 81.05 kB / 467.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002229/0.1117, allocations: 255.2 kB / 467.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.1117, allocations: 33.7 kB / 467.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.1119, allocations: 203.5 kB / 467.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.481e-05/0.1119, allocations: 47.34 kB / 467.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.298e-05/0.112, allocations: 49.64 kB / 468 MB, free: 12.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1121, allocations: 338.8 kB / 468.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.197e-05/0.1122, allocations: 51.95 kB / 468.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001355/0.1123, allocations: 153.7 kB / 468.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002578/0.1126, allocations: 228.6 kB / 468.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1126, allocations: 0 / 468.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003403/0.1129, allocations: 253 kB / 469 MB, free: 11.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.113, allocations: 11.94 kB / 469 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.113, allocations: 4 kB / 469 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.113, allocations: 4 kB / 469 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001847/0.1132, allocations: 47.91 kB / 469 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.1132, allocations: 4 kB / 469 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.1133, allocations: 11.98 kB / 469.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.1134, allocations: 16.28 kB / 469.1 MB, free: 11.41 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.0001336/0.1135, allocations: 165.7 kB / 469.2 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.475e-05/0.1135, allocations: 19.72 kB / 469.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002971/0.1138, allocations: 195.3 kB / 469.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.1139, allocations: 0 / 469.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1139, allocations: 0 / 469.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1139, allocations: 3.938 kB / 469.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006014/0.1145, allocations: 0.5616 MB / 470 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.1145, allocations: 4 kB / 470 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000132/0.1146, allocations: 31.92 kB / 470 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.1146, allocations: 0 / 470 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/0.1147, allocations: 0 / 470 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.1147, allocations: 7.938 kB / 470 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1147, allocations: 0 / 470 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002918/0.115, allocations: 300.8 kB / 470.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.661e-05/0.115, allocations: 100.7 kB / 470.4 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.266e-05/0.1151, allocations: 3.984 kB / 470.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001208/0.1152, allocations: 11.94 kB / 470.5 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.893e-05/0.1152, allocations: 7.984 kB / 470.5 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.176e-05/0.1153, allocations: 11.94 kB / 470.5 MB, free: 9.887 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001478/0.1154, allocations: 182 kB / 470.7 MB, free: 9.707 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1154, allocations: 0 / 470.7 MB, free: 9.707 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003087/0.1157, allocations: 56 kB / 470.7 MB, free: 9.652 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.0005139/0.1163, allocations: 0.8213 MB / 471.5 MB, free: 8.801 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002774/0.1165, allocations: 175.8 kB / 471.7 MB, free: 8.629 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1166, allocations: 0 / 471.7 MB, free: 8.629 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.1167, allocations: 71 kB / 471.8 MB, free: 8.562 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00046/0.1171, allocations: 68.53 kB / 471.8 MB, free: 8.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002432/0.1196, allocations: 2.553 MB / 474.4 MB, free: 5.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003064/0.1199, allocations: 0.7831 MB / 475.2 MB, free: 4.957 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000137/0.12, allocations: 42.28 kB / 475.2 MB, free: 4.914 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.1202, allocations: 91.39 kB / 475.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1202, allocations: 0 / 475.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01964/0.1398, allocations: 4.872 MB / 480.2 MB, free: 56 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.193/7.333, allocations: 3.984 kB / 480.2 MB, free: 52 kB / 350.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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]