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.001331/0.001331, allocations: 115 kB / 16.63 MB, free: 6.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.001367/0.001367, allocations: 189.8 kB / 17.55 MB, free: 5.918 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.274/1.274, allocations: 222.9 MB / 241.2 MB, free: 15.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1966/0.1966, allocations: 38.03 MB / 329.4 MB, free: 9.043 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 71.95 kB / 398.4 MB, free: 34.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1126, allocations: 58.07 MB / 456.5 MB, free: 8.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.007796/0.1205, allocations: 4.554 MB / 461 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00235/0.1229, allocations: 1.064 MB / 462.1 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005215/0.1234, allocations: 19.88 kB / 462.1 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002816/0.1238, allocations: 31.7 kB / 462.1 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007869/0.1246, allocations: 155.3 kB / 462.3 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002869/0.1249, allocations: 71.91 kB / 462.4 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006918/0.1256, allocations: 370.7 kB / 462.7 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002434/0.1258, allocations: 88.5 kB / 462.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004278/0.1263, allocations: 163.3 kB / 463 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004383/0.1267, allocations: 183.3 kB / 463.1 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.935e-05/0.1268, allocations: 16 kB / 463.2 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.098e-05/0.1269, allocations: 16 kB / 463.2 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.127, allocations: 83.72 kB / 463.3 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001948/0.1272, allocations: 127.3 kB / 463.4 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003431/0.1276, allocations: 247.1 kB / 463.6 MB, free: 1.125 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.1276, allocations: 0 / 463.6 MB, free: 1.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1276, allocations: 0 / 463.6 MB, free: 1.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.1276, allocations: 0 / 463.6 MB, free: 1.125 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.001107/0.1287, allocations: 0.5622 MB / 464.2 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.1288, allocations: 19.83 kB / 464.2 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.577e-05/0.1289, allocations: 54.73 kB / 464.3 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.681e-05/0.129, allocations: 32.56 kB / 464.3 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004677/0.1294, allocations: 307.7 kB / 464.6 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.382e-05/0.1295, allocations: 16.44 kB / 464.6 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001024/0.1296, allocations: 20 kB / 464.6 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004775/0.1301, allocations: 274 kB / 464.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.1301, allocations: 0 / 464.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.496e-05/0.1301, allocations: 8 kB / 464.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.1301, allocations: 4 kB / 464.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002838/0.1304, allocations: 163.8 kB / 465.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001625/0.132, allocations: 1.183 MB / 466.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001427/0.1322, allocations: 77.05 kB / 466.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.463e-05/0.1323, allocations: 33.81 kB / 466.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.639e-05/0.1323, allocations: 0 / 466.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.23e-05/0.1323, allocations: 38.56 kB / 466.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.002e-06/0.1323, allocations: 0 / 466.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0008194/0.1332, allocations: 408.8 kB / 466.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.964e-05/0.1332, allocations: 77.11 kB / 466.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002531/0.1335, allocations: 254.4 kB / 467.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.1335, allocations: 25.7 kB / 467.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.1337, allocations: 191.8 kB / 467.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.139e-05/0.1337, allocations: 31.64 kB / 467.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.051e-05/0.1338, allocations: 45.61 kB / 467.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.1339, allocations: 326.8 kB / 467.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.559e-05/0.134, allocations: 23.98 kB / 467.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000114/0.1341, allocations: 122.5 kB / 467.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000201/0.1343, allocations: 168.6 kB / 468 MB, free: 12.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1343, allocations: 4 kB / 468 MB, free: 12.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002816/0.1346, allocations: 185.6 kB / 468.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.1347, allocations: 16 kB / 468.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.884e-06/0.1347, allocations: 0 / 468.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.232e-05/0.1347, allocations: 8 kB / 468.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.1349, allocations: 43.86 kB / 468.3 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.1349, allocations: 4 kB / 468.3 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.135, allocations: 11.91 kB / 468.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.386e-05/0.135, allocations: 8 kB / 468.3 MB, free: 11.98 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.0001326/0.1351, allocations: 149.7 kB / 468.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.419e-05/0.1352, allocations: 23.73 kB / 468.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001648/0.1354, allocations: 99.33 kB / 468.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.1354, allocations: 0 / 468.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.1354, allocations: 4.438 kB / 468.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.1354, allocations: 0 / 468.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005029/0.1359, allocations: 415.3 kB / 469 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.356e-06/0.1359, allocations: 11.97 kB / 469 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.173e-05/0.136, allocations: 19.94 kB / 469 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.136, allocations: 0 / 469 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.1361, allocations: 12.03 kB / 469 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.1361, allocations: 0 / 469 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1361, allocations: 0 / 469 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002576/0.1363, allocations: 236.8 kB / 469.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.21e-05/0.1364, allocations: 96.84 kB / 469.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.978e-05/0.1365, allocations: 4 kB / 469.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.473e-05/0.1365, allocations: 8.062 kB / 469.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.165e-05/0.1366, allocations: 4 kB / 469.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-06/0.1366, allocations: 3.984 kB / 469.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001593/0.1367, allocations: 170 kB / 469.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.1368, allocations: 0 / 469.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003052/0.1371, allocations: 40 kB / 469.6 MB, free: 10.6 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.0005684/0.1376, allocations: 0.7645 MB / 470.3 MB, free: 9.801 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002005/0.1379, allocations: 88.53 kB / 470.4 MB, free: 9.715 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.282e-05/0.1379, allocations: 0 / 470.4 MB, free: 9.715 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.376e-05/0.1379, allocations: 36.11 kB / 470.5 MB, free: 9.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000469/0.1384, allocations: 52.3 kB / 470.5 MB, free: 9.637 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002757/0.1412, allocations: 2.387 MB / 472.9 MB, free: 7.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003788/0.1416, allocations: 0.7597 MB / 473.7 MB, free: 6.285 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001219/0.1417, allocations: 26.28 kB / 473.7 MB, free: 6.254 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.1418, allocations: 75.36 kB / 473.8 MB, free: 6.18 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1418, allocations: 0 / 473.8 MB, free: 6.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01809/0.1599, allocations: 4.003 MB / 477.8 MB, free: 2.316 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002556/0.1602, allocations: 210.6 kB / 478 MB, free: 2.059 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.786/1.946, allocations: 0 / 478 MB, free: 2.059 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