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.001466/0.001466, allocations: 104.4 kB / 16.92 MB, free: 5.793 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.001712/0.001712, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.281/1.281, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1719/0.1719, allocations: 38.03 MB / 329.7 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 66.27 kB / 398.9 MB, free: 34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08836/0.08953, allocations: 58.06 MB / 457 MB, free: 7.988 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.005549/0.09511, allocations: 3.902 MB / 460.9 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001592/0.09673, allocations: 0.8806 MB / 461.8 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002504/0.097, allocations: 7.938 kB / 461.8 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001966/0.09721, allocations: 43.56 kB / 461.8 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005507/0.09778, allocations: 163.1 kB / 462 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002285/0.09802, allocations: 87.83 kB / 462.1 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00051/0.09854, allocations: 374.7 kB / 462.4 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002149/0.09877, allocations: 88.53 kB / 462.5 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003143/0.09909, allocations: 159.3 kB / 462.7 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003734/0.09947, allocations: 163.4 kB / 462.8 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.812e-05/0.09953, allocations: 20 kB / 462.8 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.132e-05/0.0996, allocations: 16 kB / 462.9 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001167/0.09972, allocations: 79.67 kB / 462.9 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001506/0.09988, allocations: 131.3 kB / 463.1 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003265/0.1002, allocations: 255 kB / 463.3 MB, free: 1.613 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1002, allocations: 0 / 463.3 MB, free: 1.613 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1002, allocations: 0 / 463.3 MB, free: 1.613 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.1003, allocations: 7.938 kB / 463.3 MB, free: 1.605 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001056/0.1013, allocations: 0.5506 MB / 463.9 MB, free: 1.008 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.1014, allocations: 11.89 kB / 463.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.867e-05/0.1015, allocations: 58.67 kB / 463.9 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.941e-05/0.1016, allocations: 28.56 kB / 464 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006251/0.1022, allocations: 307.8 kB / 464.3 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.186e-05/0.1022, allocations: 24.42 kB / 464.3 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.898e-05/0.1023, allocations: 16 kB / 464.3 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004258/0.1027, allocations: 262.1 kB / 464.6 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.1027, allocations: 4 kB / 464.6 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.184e-05/0.1028, allocations: 12 kB / 464.6 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.1028, allocations: 8 kB / 464.6 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002663/0.103, allocations: 163.8 kB / 464.7 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00135/0.1044, allocations: 1.183 MB / 465.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001295/0.1045, allocations: 73.2 kB / 466 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.993e-05/0.1046, allocations: 33.72 kB / 466 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/0.1046, allocations: 4 kB / 466 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.926e-05/0.1047, allocations: 30.56 kB / 466.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.442e-06/0.1047, allocations: 0 / 466.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0008293/0.1055, allocations: 400.8 kB / 466.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.808e-05/0.1056, allocations: 89.03 kB / 466.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002422/0.1058, allocations: 250.5 kB / 466.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.596e-05/0.1059, allocations: 29.7 kB / 466.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001828/0.1061, allocations: 187.6 kB / 467 MB, free: 13.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.635e-05/0.1061, allocations: 31.66 kB / 467 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.825e-05/0.1061, allocations: 41.61 kB / 467.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.1063, allocations: 330.8 kB / 467.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.777e-05/0.1064, allocations: 31.92 kB / 467.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.534e-05/0.1065, allocations: 119.6 kB / 467.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001847/0.1067, allocations: 180.7 kB / 467.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1067, allocations: 0 / 467.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002562/0.1069, allocations: 181.3 kB / 467.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.1069, allocations: 11.94 kB / 467.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.107, allocations: 8 kB / 467.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.107, allocations: 4 kB / 467.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000153/0.1071, allocations: 39.92 kB / 468 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.1072, allocations: 7.984 kB / 468 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.1073, allocations: 8 kB / 468 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.506e-05/0.1073, allocations: 8.312 kB / 468 MB, free: 12.48 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 (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.0001518/0.1075, allocations: 157.7 kB / 468.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.697e-05/0.1075, allocations: 23.66 kB / 468.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002227/0.1077, allocations: 87.39 kB / 468.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.1078, allocations: 7.938 kB / 468.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.1078, allocations: 0 / 468.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.1078, allocations: 7.969 kB / 468.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005177/0.1083, allocations: 423.2 kB / 468.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1083, allocations: 4.031 kB / 468.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.352e-05/0.1084, allocations: 15.94 kB / 468.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.551e-06/0.1084, allocations: 4 kB / 468.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.1084, allocations: 7.984 kB / 468.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.1084, allocations: 0 / 468.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.1085, allocations: 4 kB / 468.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002726/0.1087, allocations: 228.8 kB / 468.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.558e-05/0.1088, allocations: 96.86 kB / 469 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.65e-05/0.1088, allocations: 0 / 469 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.592e-05/0.1089, allocations: 4 kB / 469 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.253e-05/0.1089, allocations: 7.984 kB / 469 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.109, allocations: 4 kB / 469 MB, free: 11.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001791/0.1091, allocations: 170 kB / 469.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1091, allocations: 0 / 469.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002959/0.1095, allocations: 36 kB / 469.2 MB, free: 11.11 MB / 350.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.0004695/0.1099, allocations: 0.7647 MB / 470 MB, free: 10.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001792/0.1101, allocations: 100.1 kB / 470.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1101, allocations: 3.938 kB / 470.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.541e-05/0.1102, allocations: 24.19 kB / 470.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000524/0.1107, allocations: 66.97 kB / 470.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002338/0.1131, allocations: 2.287 MB / 472.5 MB, free: 7.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003222/0.1134, allocations: 0.7636 MB / 473.3 MB, free: 6.867 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001088/0.1135, allocations: 30.28 kB / 473.3 MB, free: 6.832 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.423e-05/0.1136, allocations: 71.41 kB / 473.4 MB, free: 6.762 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1136, allocations: 0 / 473.4 MB, free: 6.762 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02067/0.1343, allocations: 4.086 MB / 477.4 MB, free: 2.777 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.263/7.397, allocations: 11.5 kB / 477.5 MB, free: 2.77 MB / 350.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),der(voltage.theta),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