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.001331/0.001331, allocations: 98.61 kB / 16.5 MB, free: 6.641 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.001468/0.001468, allocations: 195.8 kB / 17.42 MB, free: 6.066 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.252/1.252, allocations: 222.9 MB / 241.1 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1627/0.1627, allocations: 38.04 MB / 329.3 MB, free: 9.09 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 61.81 kB / 398.2 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1061, allocations: 58.05 MB / 456.2 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedLoadTest): time 0.005153/0.1113, allocations: 3.708 MB / 459.9 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00231/0.1136, allocations: 1.594 MB / 461.5 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000129/0.1138, allocations: 11.94 kB / 461.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007172/0.1145, allocations: 247.2 kB / 461.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005008/0.115, allocations: 259.1 kB / 462 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002582/0.1153, allocations: 119.7 kB / 462.2 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005088/0.1158, allocations: 0.569 MB / 462.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003006/0.1161, allocations: 134.1 kB / 462.9 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001831/0.1163, allocations: 127.4 kB / 463 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000221/0.1165, allocations: 167.4 kB / 463.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.486e-05/0.1166, allocations: 12 kB / 463.2 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005226/0.1171, allocations: 395.1 kB / 463.6 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.1172, allocations: 99.69 kB / 463.6 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001207/0.1173, allocations: 107.5 kB / 463.8 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004431/0.1178, allocations: 378.8 kB / 464.1 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1178, allocations: 0 / 464.1 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1178, allocations: 4 kB / 464.1 MB, free: 0.543 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.219e-06/0.1178, allocations: 0 / 464.1 MB, free: 0.543 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.0006916/0.1185, allocations: 0.5173 MB / 464.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.1186, allocations: 8.031 kB / 464.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.725e-05/0.1187, allocations: 54.64 kB / 464.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000939/0.1196, allocations: 108.5 kB / 464.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003109/0.1199, allocations: 259.8 kB / 465.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.1199, allocations: 16.31 kB / 465.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.439e-05/0.12, allocations: 16.38 kB / 465.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004971/0.1205, allocations: 337.6 kB / 465.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.1205, allocations: 3.938 kB / 465.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.664e-05/0.1206, allocations: 8 kB / 465.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.331e-05/0.1206, allocations: 15.98 kB / 465.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004534/0.1211, allocations: 311.7 kB / 465.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.1227, allocations: 1.264 MB / 467 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002607/0.123, allocations: 169 kB / 467.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001392/0.1231, allocations: 105.7 kB / 467.3 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.926e-05/0.1232, allocations: 11.92 kB / 467.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/0.1232, allocations: 34.56 kB / 467.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.623e-06/0.1232, allocations: 0 / 467.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001505/0.1247, allocations: 0.664 MB / 468 MB, free: 12.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.1248, allocations: 88.98 kB / 468.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.125, allocations: 194.4 kB / 468.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.098e-05/0.125, allocations: 29.7 kB / 468.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.1251, allocations: 156 kB / 468.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.583e-05/0.1252, allocations: 59.11 kB / 468.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.076e-05/0.1252, allocations: 41.7 kB / 468.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1254, allocations: 330.8 kB / 468.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.1255, allocations: 79.95 kB / 469 MB, free: 11.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001699/0.1257, allocations: 153.3 kB / 469.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003168/0.126, allocations: 260.2 kB / 469.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.126, allocations: 0 / 469.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006192/0.1267, allocations: 356.4 kB / 469.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.1267, allocations: 8 kB / 469.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.1267, allocations: 4 kB / 469.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003933/0.1271, allocations: 92.77 kB / 469.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001455/0.1273, allocations: 35.92 kB / 469.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002394/0.1297, allocations: 1.959 MB / 471.8 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001321/0.1298, allocations: 19.92 kB / 471.8 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.402e-05/0.1298, allocations: 12 kB / 471.8 MB, free: 8.301 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.0001737/0.13, allocations: 157.7 kB / 472 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.725e-05/0.1301, allocations: 15.81 kB / 472 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000583/0.1307, allocations: 324 kB / 472.3 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.1307, allocations: 4 kB / 472.3 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-06/0.1307, allocations: 0 / 472.3 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.1307, allocations: 3.984 kB / 472.3 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001081/0.1318, allocations: 0.7489 MB / 473.1 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1318, allocations: 48 / 473.1 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001035/0.1319, allocations: 31.91 kB / 473.1 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002634/0.1322, allocations: 84.91 kB / 473.2 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.723e-05/0.1322, allocations: 4 kB / 473.2 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001824/0.134, allocations: 1.822 MB / 475 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.134, allocations: 0 / 475 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000601/0.1347, allocations: 418.4 kB / 475.4 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.523e-05/0.1347, allocations: 88.92 kB / 475.5 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.741e-05/0.1348, allocations: 8 kB / 475.5 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.1349, allocations: 7.984 kB / 475.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.512e-05/0.1349, allocations: 19.92 kB / 475.6 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.832e-05/0.135, allocations: 7.984 kB / 475.6 MB, free: 4.316 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001183/0.1351, allocations: 144.3 kB / 475.7 MB, free: 4.176 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1351, allocations: 0 / 475.7 MB, free: 4.176 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004417/0.1355, allocations: 68 kB / 475.8 MB, free: 4.109 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.0009834/0.1365, allocations: 0.9406 MB / 476.7 MB, free: 3.129 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007595/0.1373, allocations: 378.8 kB / 477.1 MB, free: 2.746 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.1373, allocations: 4.062 kB / 477.1 MB, free: 2.742 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000435/0.1377, allocations: 254.4 kB / 477.3 MB, free: 2.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003813/0.1381, allocations: 38.03 kB / 477.4 MB, free: 2.445 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003164/0.1413, allocations: 2.683 MB / 480 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003429/0.1417, allocations: 0.7753 MB / 480.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001166/0.1418, allocations: 45.67 kB / 480.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.691e-05/0.1419, allocations: 63.41 kB / 480.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of SimCode: time 8.12e-07/0.1419, allocations: 0 / 480.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02092/0.1628, allocations: 4.912 MB / 485.8 MB, free: 9.922 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002203/0.1631, allocations: 237.8 kB / 486.1 MB, free: 9.664 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.743/1.906, allocations: 3.094 kB / 486.1 MB, free: 9.664 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