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.0007785/0.0007786, 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.001088/0.001088, allocations: 180.5 kB / 17.57 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.213/1.213, allocations: 223.3 MB / 241.6 MB, free: 220 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1582/0.1582, allocations: 38.09 MB / 330.8 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002718/0.0002717, allocations: 8.281 kB / 400.8 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08185/0.08213, allocations: 59.17 MB / 460 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.004489/0.08665, allocations: 4.311 MB / 464.3 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001591/0.08827, allocations: 1.075 MB / 465.4 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002395/0.08853, allocations: 27.81 kB / 465.4 MB, free: 1.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001585/0.0887, allocations: 35.7 kB / 465.4 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004288/0.08913, allocations: 163.2 kB / 465.6 MB, free: 1.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001938/0.08934, allocations: 75.91 kB / 465.7 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005325/0.08988, allocations: 0.5608 MB / 466.2 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000194/0.09008, allocations: 105.7 kB / 466.3 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002394/0.09033, allocations: 151.2 kB / 466.5 MB, free: 460 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003138/0.09065, allocations: 203.2 kB / 466.7 MB, free: 256 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.357e-05/0.0907, allocations: 12 kB / 466.7 MB, free: 244 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.01e-05/0.09074, allocations: 12 kB / 466.7 MB, free: 232 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.825e-05/0.09085, allocations: 95.7 kB / 466.8 MB, free: 136 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001604/0.09102, allocations: 160.9 kB / 467 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002643/0.09129, allocations: 298.8 kB / 467.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.0913, allocations: 0 / 467.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.09131, allocations: 0 / 467.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.261e-06/0.09132, allocations: 0 / 467.2 MB, free: 15.68 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0008953/0.09222, allocations: 0.5777 MB / 467.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.09226, allocations: 12.03 kB / 467.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.409e-05/0.09233, allocations: 58.72 kB / 467.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.217e-05/0.0924, allocations: 32.56 kB / 467.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003654/0.09277, allocations: 319.1 kB / 468.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.842e-05/0.0928, allocations: 20.88 kB / 468.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.418e-05/0.09284, allocations: 23.94 kB / 468.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004399/0.09329, allocations: 320.5 kB / 468.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.09331, allocations: 7.938 kB / 468.6 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.43e-05/0.09333, allocations: 8 kB / 468.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.09335, allocations: 8 kB / 468.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003386/0.09369, allocations: 209.5 kB / 468.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0014/0.0951, allocations: 1.352 MB / 470.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003022/0.09541, allocations: 149.1 kB / 470.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.069e-05/0.09552, allocations: 61.75 kB / 470.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/0.09554, allocations: 4 kB / 470.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.171e-05/0.09557, allocations: 38.5 kB / 470.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.283e-06/0.09557, allocations: 0 / 470.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006964/0.09627, allocations: 363.8 kB / 470.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.836e-05/0.09632, allocations: 77.11 kB / 470.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000223/0.09655, allocations: 262.9 kB / 471.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.09658, allocations: 29.7 kB / 471.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.0967, allocations: 203.5 kB / 471.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.236e-05/0.09675, allocations: 51.5 kB / 471.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.568e-05/0.09679, allocations: 21.72 kB / 471.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.09691, allocations: 342.8 kB / 471.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.985e-05/0.097, allocations: 51.95 kB / 471.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001447/0.09715, allocations: 157.6 kB / 471.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002645/0.09742, allocations: 233.3 kB / 472.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.09743, allocations: 4 kB / 472.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003406/0.09778, allocations: 241 kB / 472.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.0978, allocations: 8.375 kB / 472.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.09781, allocations: 12 kB / 472.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.09783, allocations: 4 kB / 472.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001734/0.09801, allocations: 47.91 kB / 472.5 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.09803, allocations: 8 kB / 472.5 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001178/0.09815, allocations: 11.98 kB / 472.5 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.038e-05/0.09818, allocations: 15.94 kB / 472.5 MB, free: 9.977 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.0001378/0.09832, allocations: 153.7 kB / 472.7 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.447e-05/0.09837, allocations: 27.7 kB / 472.7 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003159/0.09869, allocations: 203.1 kB / 472.9 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.0987, allocations: 4 kB / 472.9 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.09871, allocations: 0 / 472.9 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.09872, allocations: 0 / 472.9 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00061/0.09933, allocations: 0.5577 MB / 473.5 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.09935, allocations: 4 kB / 473.5 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001343/0.09949, allocations: 23.98 kB / 473.5 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.0995, allocations: 7.938 kB / 473.5 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.09952, allocations: 4.031 kB / 473.5 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.09952, allocations: 3.938 kB / 473.5 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.09953, allocations: 7.938 kB / 473.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000287/0.09982, allocations: 291.3 kB / 473.8 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.294e-05/0.09989, allocations: 96.83 kB / 473.9 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.915e-05/0.09992, allocations: 3.984 kB / 473.9 MB, free: 8.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.1001, allocations: 11.94 kB / 473.9 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.768e-05/0.1001, allocations: 11.98 kB / 473.9 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.1001, allocations: 8 kB / 473.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001394/0.1003, allocations: 178 kB / 474.1 MB, free: 8.289 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1003, allocations: 0 / 474.1 MB, free: 8.289 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003104/0.1006, allocations: 52 kB / 474.1 MB, free: 8.238 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.0005106/0.1011, allocations: 0.8269 MB / 475 MB, free: 7.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002486/0.1014, allocations: 152.5 kB / 475.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.1014, allocations: 0 / 475.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.1015, allocations: 86.98 kB / 475.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004488/0.1019, allocations: 56.8 kB / 475.3 MB, free: 7.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002595/0.1045, allocations: 2.672 MB / 477.9 MB, free: 4.238 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003127/0.1049, allocations: 0.7832 MB / 478.7 MB, free: 3.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001376/0.105, allocations: 46.25 kB / 478.8 MB, free: 3.379 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.1051, allocations: 91.41 kB / 478.8 MB, free: 3.289 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1051, allocations: 0 / 478.8 MB, free: 3.289 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1184/0.2235, allocations: 4.572 MB / 483.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001951/0.2238, allocations: 201.8 kB / 483.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.801/2.024, allocations: 7.938 kB / 483.6 MB, free: 14.61 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]