Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.00125/0.001251, allocations: 114 kB / 17.06 MB, free: 5.977 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.001194/0.001195, allocations: 198.9 kB / 18.01 MB, free: 5.059 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.311/1.311, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1742/0.1742, allocations: 38.03 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 59.91 kB / 457.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3068/0.308, allocations: 58.05 MB / 0.5036 GB, free: 7.504 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.004196/0.3123, allocations: 3.925 MB / 0.5074 GB, free: 4.781 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001093/0.3134, allocations: 0.8673 MB / 0.5083 GB, free: 4.172 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.3135, allocations: 15.19 kB / 0.5083 GB, free: 4.164 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001589/0.3137, allocations: 40.64 kB / 0.5083 GB, free: 4.141 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003949/0.3141, allocations: 165.8 kB / 0.5085 GB, free: 4.043 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001693/0.3143, allocations: 88.2 kB / 0.5086 GB, free: 3.996 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003244/0.3146, allocations: 375 kB / 0.5089 GB, free: 3.828 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001737/0.3148, allocations: 93.17 kB / 0.509 GB, free: 3.793 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002142/0.315, allocations: 158.3 kB / 0.5092 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002877/0.3153, allocations: 171.2 kB / 0.5094 GB, free: 3.656 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.291e-05/0.3154, allocations: 20.38 kB / 0.5094 GB, free: 3.652 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.955e-05/0.3154, allocations: 17.47 kB / 0.5094 GB, free: 3.652 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.341e-05/0.3155, allocations: 80.09 kB / 0.5095 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.3156, allocations: 123.7 kB / 0.5096 GB, free: 3.551 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002561/0.3159, allocations: 256.5 kB / 0.5098 GB, free: 3.445 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.3159, allocations: 0 / 0.5098 GB, free: 3.445 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3159, allocations: 0 / 0.5098 GB, free: 3.445 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.3159, allocations: 1.188 kB / 0.5098 GB, free: 3.445 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007032/0.3166, allocations: 0.5619 MB / 0.5104 GB, free: 2.965 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.3167, allocations: 13.27 kB / 0.5104 GB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.433e-05/0.3167, allocations: 59.47 kB / 0.5104 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.803e-05/0.3168, allocations: 34.33 kB / 0.5105 GB, free: 2.887 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003814/0.3172, allocations: 329 kB / 0.5108 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.694e-05/0.3172, allocations: 15.97 kB / 0.5108 GB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.621e-05/0.3172, allocations: 25.88 kB / 0.5108 GB, free: 2.605 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003271/0.3176, allocations: 261.6 kB / 0.5111 GB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.3176, allocations: 5.625 kB / 0.5111 GB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.081e-05/0.3176, allocations: 10.84 kB / 0.5111 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.3176, allocations: 4.5 kB / 0.5111 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002391/0.3179, allocations: 156.9 kB / 0.5113 GB, free: 2.383 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009443/0.3188, allocations: 1.18 MB / 0.5124 GB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001135/0.3189, allocations: 76.38 kB / 0.5125 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.18e-05/0.319, allocations: 30.84 kB / 0.5125 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.493e-05/0.319, allocations: 0.9375 kB / 0.5125 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.45e-05/0.319, allocations: 40.59 kB / 0.5125 GB, free: 1.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.382e-06/0.319, allocations: 0 / 0.5125 GB, free: 1.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005853/0.3196, allocations: 412.9 kB / 0.5129 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.425e-05/0.3197, allocations: 80.02 kB / 0.513 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001914/0.3199, allocations: 247.7 kB / 0.5133 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.937e-06/0.3199, allocations: 31.38 kB / 0.5133 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.881e-05/0.32, allocations: 191.3 kB / 0.5135 GB, free: 432 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.983e-05/0.32, allocations: 27.17 kB / 0.5135 GB, free: 412 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.755e-05/0.32, allocations: 42.47 kB / 0.5135 GB, free: 380 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.645e-05/0.3201, allocations: 330.4 kB / 0.5138 GB, free: 52 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.853e-05/0.3201, allocations: 25.83 kB / 0.5139 GB, free: 44 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001133/0.3203, allocations: 127.8 kB / 0.514 GB, free: 15.9 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001738/0.3204, allocations: 167.7 kB / 0.5142 GB, free: 15.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3204, allocations: 1.531 kB / 0.5142 GB, free: 15.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002515/0.3207, allocations: 178.9 kB / 0.5143 GB, free: 15.64 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.3207, allocations: 10.62 kB / 0.5143 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3207, allocations: 3.406 kB / 0.5143 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.3208, allocations: 5.359 kB / 0.5143 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001579/0.3209, allocations: 44.44 kB / 0.5144 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.3209, allocations: 9.641 kB / 0.5144 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.716e-05/0.321, allocations: 11.47 kB / 0.5144 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.3211, allocations: 8.531 kB / 0.5144 GB, free: 15.62 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 (22): * Single equations (assignments): 22 * 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.0001342/0.3212, allocations: 153.7 kB / 0.5146 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.264e-05/0.3213, allocations: 22.48 kB / 0.5146 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001571/0.3214, allocations: 94.33 kB / 0.5147 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.3214, allocations: 1.656 kB / 0.5147 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3214, allocations: 1.281 kB / 0.5147 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.3214, allocations: 0.6562 kB / 0.5147 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004395/0.3219, allocations: 427.6 kB / 0.5151 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3219, allocations: 7.969 kB / 0.5151 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.087e-05/0.322, allocations: 15.89 kB / 0.5151 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.322, allocations: 1.25 kB / 0.5151 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.322, allocations: 1.828 kB / 0.5151 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.322, allocations: 2.234 kB / 0.5151 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.322, allocations: 1.062 kB / 0.5151 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002344/0.3223, allocations: 231.7 kB / 0.5153 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.387e-05/0.3224, allocations: 103.3 kB / 0.5154 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.985e-05/0.3224, allocations: 2.578 kB / 0.5154 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.612e-05/0.3225, allocations: 1.438 kB / 0.5154 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.357e-05/0.3225, allocations: 8.828 kB / 0.5154 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.236e-06/0.3225, allocations: 3.891 kB / 0.5154 GB, free: 14.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001489/0.3227, allocations: 173.5 kB / 0.5156 GB, free: 14.62 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3227, allocations: 1.375 kB / 0.5156 GB, free: 14.62 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003033/0.323, allocations: 35.06 kB / 0.5156 GB, free: 14.62 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (9): * Single equations (assignments): 8 * 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.0004713/0.3235, allocations: 0.7617 MB / 0.5164 GB, free: 13.9 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001847/0.3237, allocations: 98.5 kB / 0.5165 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3237, allocations: 1.031 kB / 0.5165 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.594e-05/0.3237, allocations: 27.47 kB / 0.5165 GB, free: 13.85 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004831/0.3242, allocations: 66.44 kB / 0.5166 GB, free: 13.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002313/0.3266, allocations: 2.292 MB / 0.5188 GB, free: 12.01 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003531/0.3269, allocations: 0.755 MB / 0.5196 GB, free: 11.31 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001167/0.327, allocations: 31.56 kB / 0.5196 GB, free: 11.3 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/0.3272, allocations: 73.56 kB / 0.5197 GB, free: 11.24 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3272, allocations: 0 / 0.5197 GB, free: 11.24 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0213/0.3485, allocations: 4.214 MB / 0.5238 GB, free: 10.67 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.695/8.043, allocations: 21.23 kB / 0.5238 GB, free: 10.65 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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(ind.i),grd.term.i,grd.term.v,ind.S_nom,ind.V_nom,ind.dynType,ind.f_nom,ind.i,ind.i_start,ind.puUnits,ind.r,ind.term.i[1],ind.term.i[2],ind.term.v[1],ind.term.v[2],ind.v,ind.v_start,ind.x,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,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