Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.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.Generic.Test.FixedLoadTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedLoadTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedLoadTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedLoadTest",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.001088/0.001088, allocations: 103.5 kB / 16.62 MB, free: 6.801 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.001376/0.001376, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.244/1.244, allocations: 222.9 MB / 241.2 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1653/0.1653, allocations: 38.03 MB / 329.4 MB, free: 8.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 65.12 kB / 398.4 MB, free: 34.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09163/0.0929, allocations: 58.06 MB / 456.5 MB, free: 8.293 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedLoadTest): time 0.004756/0.0977, allocations: 3.704 MB / 460.2 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001893/0.09961, allocations: 1.574 MB / 461.7 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.09973, allocations: 7.938 kB / 461.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006871/0.1004, allocations: 247.2 kB / 462 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004753/0.1009, allocations: 263.1 kB / 462.2 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002482/0.1012, allocations: 123.6 kB / 462.4 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003745/0.1016, allocations: 343 kB / 462.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003169/0.1019, allocations: 145.9 kB / 462.8 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002152/0.1021, allocations: 151.4 kB / 463 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002215/0.1024, allocations: 183.3 kB / 463.2 MB, free: 1.547 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.439e-05/0.1024, allocations: 12 kB / 463.2 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004316/0.1028, allocations: 319.2 kB / 463.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.1029, allocations: 103.7 kB / 463.6 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001242/0.1031, allocations: 111.5 kB / 463.7 MB, free: 1.012 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004332/0.1035, allocations: 386.8 kB / 464.1 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.1035, allocations: 0 / 464.1 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1035, allocations: 4 kB / 464.1 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.1036, allocations: 0 / 464.1 MB, free: 0.6289 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.0006758/0.1042, allocations: 0.5025 MB / 464.6 MB, free: 80 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/0.1043, allocations: 15.89 kB / 464.6 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.248e-05/0.1044, allocations: 58.77 kB / 464.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000888/0.1053, allocations: 100.5 kB / 464.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003316/0.1056, allocations: 263.8 kB / 465 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.1056, allocations: 20.33 kB / 465 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.872e-05/0.1057, allocations: 16.36 kB / 465 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004486/0.1061, allocations: 321.8 kB / 465.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.1062, allocations: 7.938 kB / 465.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.543e-05/0.1062, allocations: 7.984 kB / 465.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.133e-05/0.1062, allocations: 23.98 kB / 465.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004282/0.1067, allocations: 311.7 kB / 465.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001519/0.1082, allocations: 1.264 MB / 467 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002467/0.1084, allocations: 169 kB / 467.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000137/0.1086, allocations: 105.7 kB / 467.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.718e-05/0.1086, allocations: 8 kB / 467.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/0.1087, allocations: 30.56 kB / 467.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.323e-06/0.1087, allocations: 0 / 467.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001466/0.1101, allocations: 0.6685 MB / 467.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/0.1102, allocations: 84.98 kB / 468 MB, free: 12.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001756/0.1104, allocations: 190.4 kB / 468.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/0.1104, allocations: 25.7 kB / 468.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.1105, allocations: 156 kB / 468.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.912e-05/0.1106, allocations: 59.11 kB / 468.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.815e-05/0.1107, allocations: 45.7 kB / 468.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.1108, allocations: 330.8 kB / 468.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001144/0.1109, allocations: 83.98 kB / 468.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000168/0.1111, allocations: 157.3 kB / 469.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003133/0.1114, allocations: 260.2 kB / 469.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1114, allocations: 0 / 469.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005904/0.112, allocations: 352.2 kB / 469.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.1121, allocations: 7.984 kB / 469.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.1121, allocations: 4 kB / 469.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003561/0.1124, allocations: 97.06 kB / 469.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.1126, allocations: 35.92 kB / 469.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002319/0.1149, allocations: 2.172 MB / 472 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001272/0.1151, allocations: 15.92 kB / 472 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.788e-05/0.1151, allocations: 12 kB / 472 MB, free: 8.18 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001369/0.1152, allocations: 157.7 kB / 472.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.239e-05/0.1153, allocations: 15.81 kB / 472.2 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006127/0.1159, allocations: 328 kB / 472.5 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.1159, allocations: 4 kB / 472.5 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.1159, allocations: 0 / 472.5 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1159, allocations: 0 / 472.5 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00115/0.1171, allocations: 0.7371 MB / 473.2 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.1171, allocations: 4 kB / 473.2 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001097/0.1172, allocations: 31.91 kB / 473.3 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002889/0.1175, allocations: 80.84 kB / 473.3 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.038e-05/0.1176, allocations: 12.06 kB / 473.3 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001936/0.1195, allocations: 2.036 MB / 475.4 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.1195, allocations: 32 / 475.4 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005626/0.1201, allocations: 414.5 kB / 475.8 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.582e-05/0.1201, allocations: 96.8 kB / 475.9 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.732e-05/0.1202, allocations: 8 kB / 475.9 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001249/0.1203, allocations: 11.98 kB / 475.9 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.125e-05/0.1204, allocations: 11.98 kB / 475.9 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.528e-05/0.1204, allocations: 8 kB / 475.9 MB, free: 3.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001089/0.1205, allocations: 140.3 kB / 476.1 MB, free: 3.844 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1205, allocations: 0 / 476.1 MB, free: 3.844 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004172/0.1209, allocations: 72 kB / 476.1 MB, free: 3.773 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008326/0.1218, allocations: 0.9445 MB / 477.1 MB, free: 2.789 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006374/0.1224, allocations: 398.3 kB / 477.5 MB, free: 2.387 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1224, allocations: 0.5625 kB / 477.5 MB, free: 2.387 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003666/0.1228, allocations: 266.3 kB / 477.7 MB, free: 2.113 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000362/0.1232, allocations: 32.03 kB / 477.8 MB, free: 2.082 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003093/0.1263, allocations: 2.688 MB / 480.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003294/0.1266, allocations: 0.7636 MB / 481.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001166/0.1267, allocations: 45.64 kB / 481.3 MB, free: 14.4 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.637e-05/0.1268, allocations: 59.41 kB / 481.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1269, allocations: 0 / 481.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01822/0.1451, allocations: 5.134 MB / 486.4 MB, free: 9.363 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002667/0.1454, allocations: 240.4 kB / 486.7 MB, free: 9.109 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.815/1.961, allocations: 0 / 486.7 MB, free: 9.109 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedLoadTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedLoadTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedLoadTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,line.i[1],line.i[2],line.p[1],line.p[2],line.v[1],line.v[2] Variables in the result:der(line.terminal_p.theta[2]),line.I,line.L,line.R,line.V,line.i[1],line.i[2],line.i_start[1],line.i_start[2],line.omegaRef,line.p[1],line.p[2],line.phi,line.terminal_n.i[1],line.terminal_n.i[2],line.terminal_n.theta[1],line.terminal_n.theta[2],line.terminal_n.v[1],line.terminal_n.v[2],line.terminal_p.i[1],line.terminal_p.i[2],line.terminal_p.theta[1],line.terminal_p.theta[2],line.terminal_p.v[1],line.terminal_p.v[2],line.v[1],line.v[2],line.v_start[1],line.v_start[2],load.P,load.p[1],load.p[2],load.phi,load.terminal.i[1],load.terminal.i[2],load.terminal.theta[1],load.terminal.theta[2],load.terminal.v[1],load.terminal.v[2],load.v_start[1],load.v_start[2],source.V,source.definiteReference,source.p[1],source.p[2],source.phi,source.potentialReference,source.terminal.i[1],source.terminal.i[2],source.terminal.theta[1],source.terminal.theta[2],source.terminal.v[1],source.terminal.v[2],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