Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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.LoadAC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",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.001485/0.001485, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.001678/0.001678, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.364/1.364, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.179/0.179, allocations: 38.04 MB / 329.7 MB, free: 8.871 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 67.91 kB / 398.9 MB, free: 33.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09701/0.09821, allocations: 58.06 MB / 457 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.007092/0.1053, allocations: 4.194 MB / 461.2 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001748/0.1071, allocations: 0.9393 MB / 462.1 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002761/0.1074, allocations: 15.88 kB / 462.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000208/0.1076, allocations: 51.5 kB / 462.2 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006565/0.1083, allocations: 202.9 kB / 462.4 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002525/0.1086, allocations: 99.81 kB / 462.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005241/0.1091, allocations: 482.3 kB / 462.9 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002672/0.1094, allocations: 143.6 kB / 463.1 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002791/0.1097, allocations: 207.1 kB / 463.3 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004067/0.1101, allocations: 247.1 kB / 463.5 MB, free: 1.395 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.148e-05/0.1102, allocations: 24 kB / 463.6 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.3e-05/0.1103, allocations: 28 kB / 463.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001469/0.1104, allocations: 127.6 kB / 463.7 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001801/0.1106, allocations: 179.1 kB / 463.9 MB, free: 1.043 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000382/0.111, allocations: 378.6 kB / 464.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.111, allocations: 0 / 464.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.111, allocations: 0 / 464.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.725e-06/0.111, allocations: 0 / 464.2 MB, free: 0.6719 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001282/0.1123, allocations: 0.6945 MB / 464.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.1124, allocations: 11.89 kB / 465 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.881e-05/0.1124, allocations: 66.72 kB / 465 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.982e-05/0.1125, allocations: 40.41 kB / 465.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005649/0.1131, allocations: 378.9 kB / 465.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.673e-05/0.1131, allocations: 20.56 kB / 465.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.973e-05/0.1132, allocations: 24 kB / 465.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004805/0.1137, allocations: 360.7 kB / 465.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.1137, allocations: 7.938 kB / 465.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.652e-05/0.1137, allocations: 8 kB / 465.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.1137, allocations: 11.98 kB / 465.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003869/0.1141, allocations: 254 kB / 466.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001725/0.1159, allocations: 1.454 MB / 467.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002317/0.1161, allocations: 153 kB / 467.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001146/0.1162, allocations: 89.72 kB / 467.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.742e-05/0.1162, allocations: 0 / 467.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.241e-05/0.1163, allocations: 42.44 kB / 467.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.082e-06/0.1163, allocations: 0 / 467.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001048/0.1174, allocations: 0.6709 MB / 468.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.1174, allocations: 85.23 kB / 468.6 MB, free: 12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002689/0.1177, allocations: 296.5 kB / 468.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.158e-05/0.1177, allocations: 29.7 kB / 468.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.1179, allocations: 215.5 kB / 469.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.908e-05/0.1179, allocations: 63.12 kB / 469.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.891e-05/0.118, allocations: 53.61 kB / 469.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.1181, allocations: 334.8 kB / 469.6 MB, free: 11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.1182, allocations: 71.95 kB / 469.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.1184, allocations: 169.3 kB / 469.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002918/0.1187, allocations: 259.7 kB / 470 MB, free: 10.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1187, allocations: 0 / 470 MB, free: 10.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003884/0.1191, allocations: 288.9 kB / 470.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.1191, allocations: 10.03 kB / 470.3 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.1192, allocations: 4 kB / 470.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.1192, allocations: 4 kB / 470.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002496/0.1194, allocations: 59.84 kB / 470.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.1194, allocations: 4.438 kB / 470.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001579/0.1196, allocations: 19.98 kB / 470.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.813e-05/0.1196, allocations: 12 kB / 470.4 MB, free: 10.03 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 (29): * Single equations (assignments): 29 * 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.0001493/0.1198, allocations: 169.7 kB / 470.6 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.217e-05/0.1199, allocations: 31.56 kB / 470.6 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003721/0.1202, allocations: 238.4 kB / 470.9 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.1203, allocations: 8 kB / 470.9 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1203, allocations: 0 / 470.9 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.1203, allocations: 0 / 470.9 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007498/0.121, allocations: 0.624 MB / 471.5 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.121, allocations: 4 kB / 471.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/0.1212, allocations: 35.92 kB / 471.5 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.1213, allocations: 0 / 471.5 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.691e-05/0.1213, allocations: 11.92 kB / 471.6 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.1213, allocations: 0 / 471.6 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1213, allocations: 0 / 471.6 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005099/0.1218, allocations: 432.6 kB / 472 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.725e-05/0.1219, allocations: 108.7 kB / 472.1 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.27e-05/0.1219, allocations: 7.984 kB / 472.1 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001661/0.1221, allocations: 8 kB / 472.1 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.297e-05/0.1222, allocations: 7.984 kB / 472.1 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.56e-05/0.1222, allocations: 15.94 kB / 472.1 MB, free: 8.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001923/0.1224, allocations: 211.1 kB / 472.3 MB, free: 8.023 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1224, allocations: 0 / 472.3 MB, free: 8.023 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003331/0.1227, allocations: 64 kB / 472.4 MB, free: 7.961 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * 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 (20): * Single equations (assignments): 19 * 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.0007215/0.1234, allocations: 0.9471 MB / 473.3 MB, free: 6.984 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003484/0.1238, allocations: 199.6 kB / 473.5 MB, free: 6.789 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.1238, allocations: 3.938 kB / 473.5 MB, free: 6.785 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001298/0.124, allocations: 94.39 kB / 473.6 MB, free: 6.695 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005117/0.1245, allocations: 77.42 kB / 473.7 MB, free: 6.621 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003379/0.1279, allocations: 2.901 MB / 476.6 MB, free: 3.543 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003911/0.1283, allocations: 0.8102 MB / 477.4 MB, free: 2.707 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001875/0.1285, allocations: 50.94 kB / 477.5 MB, free: 2.656 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001482/0.1286, allocations: 107.4 kB / 477.6 MB, free: 2.551 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.1286, allocations: 0 / 477.6 MB, free: 2.551 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02764/0.1563, allocations: 5.904 MB / 483.5 MB, free: 12.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.164/7.32, allocations: 10.09 kB / 483.5 MB, free: 12.74 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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(voltage.theta),der(zLoadAC.psi),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,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],trsSignal[1].s_end,trsSignal[1].s_start,trsSignal[1].t_change,trsSignal[1].t_duration,trsSignal[1].y,trsSignal[2].s_end,trsSignal[2].s_start,trsSignal[2].t_change,trsSignal[2].t_duration,trsSignal[2].y,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,voltage.vPhasor_in[1],voltage.vPhasor_in[2],zLoadAC.S_nom,zLoadAC.V_nom,zLoadAC.dynType,zLoadAC.i,zLoadAC.pq0[1],zLoadAC.pq0[2],zLoadAC.pq_in[1],zLoadAC.pq_in[2],zLoadAC.psi,zLoadAC.psi_start,zLoadAC.puUnits,zLoadAC.term.i[1],zLoadAC.term.i[2],zLoadAC.term.v[1],zLoadAC.term.v[2],zLoadAC.use_pq_in,zLoadAC.v