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.0009752/0.0009752, allocations: 109.6 kB / 16.51 MB, free: 6.707 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.001078/0.001078, allocations: 190.5 kB / 17.42 MB, free: 6.07 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.245/1.245, allocations: 222.9 MB / 241.1 MB, free: 15.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1624/0.1624, allocations: 38.04 MB / 329.3 MB, free: 9.105 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 68.33 kB / 398.2 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1077, allocations: 58.07 MB / 456.3 MB, free: 8.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.006025/0.1137, allocations: 4.558 MB / 460.8 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001661/0.1154, allocations: 1.056 MB / 461.9 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002012/0.1157, allocations: 27.81 kB / 461.9 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001945/0.1159, allocations: 31.77 kB / 461.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004473/0.1163, allocations: 147.3 kB / 462.1 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001844/0.1165, allocations: 79.84 kB / 462.2 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004717/0.117, allocations: 0.4946 MB / 462.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001957/0.1172, allocations: 68.8 kB / 462.7 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002168/0.1174, allocations: 147.2 kB / 462.9 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003033/0.1177, allocations: 167.4 kB / 463 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.279e-05/0.1178, allocations: 12 kB / 463 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.181e-05/0.1178, allocations: 16 kB / 463 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.1179, allocations: 79.72 kB / 463.1 MB, free: 1.543 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001275/0.1181, allocations: 119.3 kB / 463.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000244/0.1183, allocations: 255 kB / 463.5 MB, free: 1.176 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1183, allocations: 0 / 463.5 MB, free: 1.176 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1184, allocations: 0 / 463.5 MB, free: 1.176 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.1184, allocations: 0 / 463.5 MB, free: 1.176 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.0008406/0.1192, allocations: 0.5544 MB / 464 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.1193, allocations: 8.031 kB / 464.1 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.804e-05/0.1193, allocations: 58.73 kB / 464.1 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.276e-05/0.1194, allocations: 36.56 kB / 464.1 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003894/0.1198, allocations: 311.6 kB / 464.5 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.1198, allocations: 12.44 kB / 464.5 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.309e-05/0.1198, allocations: 24 kB / 464.5 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003675/0.1202, allocations: 270 kB / 464.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.1202, allocations: 0 / 464.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.068e-05/0.1203, allocations: 8 kB / 464.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.1203, allocations: 7.984 kB / 464.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002537/0.1205, allocations: 163.8 kB / 464.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001201/0.1217, allocations: 1.175 MB / 466.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001384/0.1219, allocations: 81.11 kB / 466.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.873e-05/0.1219, allocations: 29.81 kB / 466.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.649e-05/0.122, allocations: 0 / 466.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.155e-05/0.122, allocations: 38.56 kB / 466.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 2.755e-06/0.122, allocations: 0 / 466.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006622/0.1227, allocations: 408.8 kB / 466.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.1227, allocations: 77.11 kB / 466.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002132/0.123, allocations: 250.4 kB / 467 MB, free: 13.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.123, allocations: 29.7 kB / 467 MB, free: 13.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.1231, allocations: 187.6 kB / 467.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.689e-05/0.1231, allocations: 31.64 kB / 467.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.498e-05/0.1232, allocations: 49.67 kB / 467.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.1234, allocations: 334.8 kB / 467.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.723e-05/0.1235, allocations: 23.98 kB / 467.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001865/0.1236, allocations: 126.7 kB / 467.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001788/0.1238, allocations: 172.7 kB / 467.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1238, allocations: 4 kB / 467.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002379/0.1241, allocations: 173.2 kB / 468.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.1241, allocations: 8.375 kB / 468.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.1241, allocations: 4 kB / 468.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.1241, allocations: 12 kB / 468.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.1243, allocations: 43.92 kB / 468.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.1243, allocations: 4 kB / 468.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.95e-05/0.1244, allocations: 11.84 kB / 468.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.565e-05/0.1244, allocations: 12 kB / 468.2 MB, free: 12.04 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.0001257/0.1245, allocations: 145.7 kB / 468.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.959e-05/0.1246, allocations: 23.75 kB / 468.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001559/0.1248, allocations: 103.3 kB / 468.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1248, allocations: 0 / 468.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.1248, allocations: 448 / 468.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1248, allocations: 4 kB / 468.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004157/0.1252, allocations: 419.2 kB / 468.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.1252, allocations: 4 kB / 468.9 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.866e-05/0.1253, allocations: 19.98 kB / 468.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1253, allocations: 0 / 468.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.1253, allocations: 0 / 468.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.1254, allocations: 8.031 kB / 468.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.1254, allocations: 320 / 468.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002382/0.1256, allocations: 232.8 kB / 469.1 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.604e-05/0.1257, allocations: 100.8 kB / 469.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.863e-05/0.1257, allocations: 4 kB / 469.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.003e-05/0.1258, allocations: 0 / 469.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.767e-05/0.1258, allocations: 12.06 kB / 469.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-06/0.1258, allocations: 0 / 469.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001455/0.126, allocations: 174 kB / 469.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.126, allocations: 0 / 469.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002844/0.1263, allocations: 40 kB / 469.4 MB, free: 10.66 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.0004507/0.1267, allocations: 0.7684 MB / 470.2 MB, free: 9.863 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001604/0.1269, allocations: 87.95 kB / 470.3 MB, free: 9.777 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1269, allocations: 4.875 kB / 470.3 MB, free: 9.773 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.317e-05/0.127, allocations: 31.92 kB / 470.3 MB, free: 9.742 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004423/0.1274, allocations: 52.66 kB / 470.4 MB, free: 9.691 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002331/0.1298, allocations: 2.37 MB / 472.7 MB, free: 7.141 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.1301, allocations: 0.756 MB / 473.5 MB, free: 6.359 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001079/0.1302, allocations: 26.28 kB / 473.5 MB, free: 6.328 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.1303, allocations: 75.41 kB / 473.6 MB, free: 6.254 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1303, allocations: 3.938 kB / 473.6 MB, free: 6.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01337/0.1437, allocations: 3.895 MB / 477.5 MB, free: 2.477 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002039/0.1439, allocations: 202.5 kB / 477.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.68/1.824, allocations: 3.938 kB / 477.7 MB, free: 2.223 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","../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