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.001268/0.001268, allocations: 108.8 kB / 17.06 MB, free: 6.016 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.001271/0.001271, allocations: 192 kB / 18 MB, free: 5.102 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.384/1.384, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1797/0.1797, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 67.89 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3022/0.3041, allocations: 58.06 MB / 0.5036 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.004372/0.3085, allocations: 4.036 MB / 0.5076 GB, free: 4.668 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001092/0.3096, allocations: 0.901 MB / 0.5084 GB, free: 4.031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000131/0.3097, allocations: 19.12 kB / 0.5085 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001912/0.3099, allocations: 46.42 kB / 0.5085 GB, free: 3.992 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004284/0.3104, allocations: 180.5 kB / 0.5087 GB, free: 3.887 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001929/0.3106, allocations: 90.95 kB / 0.5088 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004173/0.311, allocations: 407.8 kB / 0.5092 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002288/0.3112, allocations: 119.7 kB / 0.5093 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002303/0.3115, allocations: 180 kB / 0.5094 GB, free: 3.539 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003492/0.3118, allocations: 200.8 kB / 0.5096 GB, free: 3.465 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.662e-05/0.3119, allocations: 20.66 kB / 0.5097 GB, free: 3.465 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.811e-05/0.312, allocations: 21.25 kB / 0.5097 GB, free: 3.465 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001291/0.3121, allocations: 104.2 kB / 0.5098 GB, free: 3.426 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.3122, allocations: 157.6 kB / 0.5099 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000356/0.3126, allocations: 324.6 kB / 0.5102 GB, free: 3.195 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.3126, allocations: 0 / 0.5102 GB, free: 3.195 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3126, allocations: 0 / 0.5102 GB, free: 3.195 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.3126, allocations: 0 / 0.5102 GB, free: 3.195 MB / 382.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.0009454/0.3136, allocations: 0.6238 MB / 0.5108 GB, free: 2.688 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.3136, allocations: 13.36 kB / 0.5109 GB, free: 2.684 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.744e-05/0.3137, allocations: 60.25 kB / 0.5109 GB, free: 2.629 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.748e-05/0.3138, allocations: 38.17 kB / 0.511 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000411/0.3142, allocations: 344.9 kB / 0.5113 GB, free: 2.332 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.097e-05/0.3142, allocations: 18.81 kB / 0.5113 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.467e-05/0.3142, allocations: 26.09 kB / 0.5113 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004293/0.3147, allocations: 319 kB / 0.5116 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.3147, allocations: 1.562 kB / 0.5116 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/0.3147, allocations: 6.625 kB / 0.5116 GB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.3147, allocations: 6 kB / 0.5116 GB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003323/0.3151, allocations: 217.5 kB / 0.5118 GB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.3163, allocations: 1.349 MB / 0.5132 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002962/0.3166, allocations: 148.2 kB / 0.5133 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.483e-05/0.3167, allocations: 58.25 kB / 0.5134 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.3168, allocations: 2.891 kB / 0.5134 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.603e-05/0.3168, allocations: 39.59 kB / 0.5134 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.362e-06/0.3168, allocations: 1.25 kB / 0.5134 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007257/0.3175, allocations: 372.5 kB / 0.5138 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.057e-05/0.3176, allocations: 79.92 kB / 0.5138 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002232/0.3178, allocations: 262.9 kB / 0.5141 GB, free: 380 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.167e-05/0.3178, allocations: 25.7 kB / 0.5141 GB, free: 348 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.001e-05/0.3179, allocations: 212.2 kB / 0.5143 GB, free: 164 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.982e-05/0.3179, allocations: 45.34 kB / 0.5144 GB, free: 128 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.309e-05/0.318, allocations: 46.91 kB / 0.5144 GB, free: 96 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.3182, allocations: 340.8 kB / 0.5147 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.494e-05/0.3183, allocations: 53.75 kB / 0.5148 GB, free: 15.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001787/0.3184, allocations: 151.5 kB / 0.5149 GB, free: 15.61 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003007/0.3187, allocations: 236.7 kB / 0.5151 GB, free: 15.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.3188, allocations: 1.281 kB / 0.5152 GB, free: 15.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003694/0.3191, allocations: 252.3 kB / 0.5154 GB, free: 15.3 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.3192, allocations: 6.656 kB / 0.5154 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.3192, allocations: 7.125 kB / 0.5154 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.3192, allocations: 5.859 kB / 0.5154 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001864/0.3194, allocations: 52.42 kB / 0.5155 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.3194, allocations: 4.969 kB / 0.5155 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001239/0.3195, allocations: 8.969 kB / 0.5155 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.897e-05/0.3196, allocations: 18.12 kB / 0.5155 GB, free: 15.27 MB / 398.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.0001525/0.3197, allocations: 157.8 kB / 0.5156 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.678e-05/0.3198, allocations: 30.84 kB / 0.5157 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003415/0.3201, allocations: 198.9 kB / 0.5159 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.257e-06/0.3201, allocations: 1.656 kB / 0.5159 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.3201, allocations: 0 / 0.5159 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.3201, allocations: 2.656 kB / 0.5159 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007213/0.3209, allocations: 0.5517 MB / 0.5164 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3209, allocations: 0.75 kB / 0.5164 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001373/0.321, allocations: 31.59 kB / 0.5164 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.321, allocations: 5.438 kB / 0.5164 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.806e-05/0.3211, allocations: 6.078 kB / 0.5164 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.3211, allocations: 6.125 kB / 0.5165 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3211, allocations: 1.125 kB / 0.5165 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003641/0.3215, allocations: 293.7 kB / 0.5167 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.464e-05/0.3215, allocations: 100.9 kB / 0.5168 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.891e-05/0.3216, allocations: 6.125 kB / 0.5168 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/0.3217, allocations: 11.56 kB / 0.5168 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.073e-05/0.3217, allocations: 12.25 kB / 0.5169 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.3218, allocations: 4.406 kB / 0.5169 GB, free: 14.27 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001816/0.3219, allocations: 184 kB / 0.517 GB, free: 14.16 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.322, allocations: 0 / 0.517 GB, free: 14.16 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000329/0.3223, allocations: 48.34 kB / 0.5171 GB, free: 14.16 MB / 398.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.000715/0.323, allocations: 0.8282 MB / 0.5179 GB, free: 13.42 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000332/0.3234, allocations: 166.5 kB / 0.518 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3234, allocations: 5.562 kB / 0.5181 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001274/0.3235, allocations: 69.8 kB / 0.5181 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005089/0.324, allocations: 58.81 kB / 0.5182 GB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003152/0.3272, allocations: 2.56 MB / 0.5207 GB, free: 11.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004469/0.3276, allocations: 0.7826 MB / 0.5214 GB, free: 10.71 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001525/0.3278, allocations: 49.23 kB / 0.5215 GB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000147/0.328, allocations: 90.42 kB / 0.5216 GB, free: 10.64 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.328, allocations: 0 / 0.5216 GB, free: 10.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02747/0.3554, allocations: 4.947 MB / 0.5264 GB, free: 10.03 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.18/8.536, allocations: 9.422 kB / 0.5264 GB, free: 10.02 MB / 398.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: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]