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.0009141/0.0009141, allocations: 84.28 kB / 16.65 MB, free: 6.535 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.001114/0.001114, allocations: 176.4 kB / 17.56 MB, free: 6.18 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.19/1.19, allocations: 223.3 MB / 241.6 MB, free: 14.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1611/0.1611, allocations: 38.1 MB / 330.8 MB, free: 8.535 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002578/0.0002578, allocations: 8 kB / 400.8 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07644/0.07671, allocations: 59.17 MB / 460 MB, free: 6.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedLoadTest): time 0.003314/0.08006, allocations: 3.341 MB / 463.3 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001735/0.08182, allocations: 1.559 MB / 464.9 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.622e-05/0.08192, allocations: 7.938 kB / 464.9 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001242/0.08206, allocations: 31.77 kB / 464.9 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004995/0.08256, allocations: 279.1 kB / 465.2 MB, free: 1.719 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002205/0.0828, allocations: 107.8 kB / 465.3 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004845/0.08329, allocations: 0.5729 MB / 465.9 MB, free: 1.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005335/0.08383, allocations: 330.8 kB / 466.2 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001634/0.08401, allocations: 119.4 kB / 466.3 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001975/0.08421, allocations: 155.5 kB / 466.5 MB, free: 436 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.9e-05/0.08424, allocations: 8 kB / 466.5 MB, free: 428 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004606/0.08471, allocations: 399 kB / 466.9 MB, free: 28 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.637e-05/0.08481, allocations: 87.75 kB / 466.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.08492, allocations: 133.1 kB / 467.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003653/0.0853, allocations: 366.8 kB / 467.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.08531, allocations: 0 / 467.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.08532, allocations: 0 / 467.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.08533, allocations: 0 / 467.4 MB, free: 15.45 MB / 350.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.0005276/0.08586, allocations: 490.6 kB / 467.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.0859, allocations: 15.97 kB / 467.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.055e-05/0.08596, allocations: 58.72 kB / 468 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008439/0.08681, allocations: 100.5 kB / 468.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002435/0.08706, allocations: 255.9 kB / 468.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.08708, allocations: 20.33 kB / 468.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.272e-05/0.08713, allocations: 20.36 kB / 468.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004299/0.08757, allocations: 329.6 kB / 468.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.08759, allocations: 0 / 468.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.331e-05/0.08762, allocations: 11.92 kB / 468.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.242e-05/0.08766, allocations: 27.97 kB / 468.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000414/0.08808, allocations: 307.7 kB / 469 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00135/0.08944, allocations: 1.271 MB / 470.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002229/0.08967, allocations: 157.1 kB / 470.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001312/0.08981, allocations: 101.7 kB / 470.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.805e-05/0.08985, allocations: 15.98 kB / 470.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.859e-05/0.08987, allocations: 38.44 kB / 470.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.182e-06/0.08988, allocations: 0 / 470.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001335/0.09122, allocations: 0.6661 MB / 471.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.6e-05/0.09127, allocations: 81.05 kB / 471.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001491/0.09142, allocations: 194.3 kB / 471.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.09145, allocations: 29.83 kB / 471.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.193e-05/0.09153, allocations: 152 kB / 471.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.67e-05/0.09158, allocations: 63.09 kB / 471.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.775e-05/0.09162, allocations: 29.7 kB / 471.8 MB, free: 10.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.372e-05/0.09171, allocations: 326.8 kB / 472.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.09183, allocations: 75.95 kB / 472.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001447/0.09198, allocations: 161.3 kB / 472.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002837/0.09227, allocations: 258.8 kB / 472.6 MB, free: 9.871 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.09228, allocations: 0 / 472.6 MB, free: 9.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005468/0.09283, allocations: 353.9 kB / 473 MB, free: 9.516 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.09285, allocations: 6.344 kB / 473 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.09286, allocations: 4 kB / 473 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003274/0.0932, allocations: 92.78 kB / 473.1 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.09335, allocations: 39.91 kB / 473.1 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001897/0.09525, allocations: 1.954 MB / 475.1 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001236/0.09539, allocations: 20.05 kB / 475.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/0.09541, allocations: 8 kB / 475.1 MB, free: 7.258 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.0001169/0.09554, allocations: 153.7 kB / 475.2 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.183e-05/0.09558, allocations: 23.8 kB / 475.3 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005393/0.09613, allocations: 320 kB / 475.6 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.09614, allocations: 4 kB / 475.6 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.09615, allocations: 4 kB / 475.6 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.09616, allocations: 0 / 475.6 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009842/0.09715, allocations: 0.7426 MB / 476.3 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.09716, allocations: 4.062 kB / 476.3 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.798e-05/0.09727, allocations: 23.98 kB / 476.3 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002424/0.09752, allocations: 76.77 kB / 476.4 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.09754, allocations: 8 kB / 476.4 MB, free: 5.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001561/0.09911, allocations: 1.826 MB / 478.3 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.09912, allocations: 4.188 kB / 478.3 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000501/0.09963, allocations: 413.5 kB / 478.7 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.392e-05/0.09969, allocations: 100.9 kB / 478.8 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.09972, allocations: 4 kB / 478.8 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.09985, allocations: 8 kB / 478.8 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.194e-05/0.0999, allocations: 23.81 kB / 478.8 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.09992, allocations: 8 kB / 478.8 MB, free: 3.273 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.547e-05/0.1, allocations: 144.3 kB / 478.9 MB, free: 3.133 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1, allocations: 0 / 478.9 MB, free: 3.133 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003909/0.1004, allocations: 68 kB / 479 MB, free: 3.066 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.0006926/0.1011, allocations: 0.9384 MB / 479.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005494/0.1017, allocations: 378.3 kB / 480.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1017, allocations: 0 / 480.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003345/0.102, allocations: 259.2 kB / 480.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003439/0.1024, allocations: 39.84 kB / 480.6 MB, free: 1.402 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002616/0.105, allocations: 2.715 MB / 483.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/0.1053, allocations: 0.7677 MB / 484.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001073/0.1054, allocations: 41.55 kB / 484.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.484e-05/0.1055, allocations: 63.41 kB / 484.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1055, allocations: 8 kB / 484.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1421/0.2476, allocations: 4.783 MB / 489 MB, free: 9 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003045/0.248, allocations: 232.9 kB / 489.2 MB, free: 8.746 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.627/1.875, allocations: 3.938 kB / 489.2 MB, free: 8.742 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","../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