Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.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: translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") 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: 108.3 kB / 16.51 MB, free: 6.707 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.001166/0.001166, allocations: 190.5 kB / 17.43 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.399/1.399, allocations: 222.9 MB / 241.1 MB, free: 13.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1733/0.1733, allocations: 38.04 MB / 329.3 MB, free: 8.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 60.92 kB / 398.1 MB, free: 34.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1071, allocations: 58.05 MB / 456.2 MB, free: 8.516 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004714/0.1119, allocations: 3.559 MB / 459.7 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002087/0.114, allocations: 1.29 MB / 461 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000276/0.1143, allocations: 11.94 kB / 461 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006495/0.1149, allocations: 143.4 kB / 461.2 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005007/0.1154, allocations: 175.2 kB / 461.3 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000359/0.1158, allocations: 115.8 kB / 461.4 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003942/0.1162, allocations: 386.8 kB / 461.8 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002676/0.1165, allocations: 110 kB / 461.9 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001665/0.1167, allocations: 103.5 kB / 462 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001598/0.1168, allocations: 115.5 kB / 462.1 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.294e-05/0.1169, allocations: 8 kB / 462.1 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004012/0.1173, allocations: 287.3 kB / 462.4 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.638e-05/0.1174, allocations: 59.8 kB / 462.5 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.1175, allocations: 99.42 kB / 462.6 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003621/0.1179, allocations: 295.1 kB / 462.9 MB, free: 1.762 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.1179, allocations: 4 kB / 462.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.1179, allocations: 0 / 462.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.1179, allocations: 0 / 462.9 MB, free: 1.758 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006792/0.1186, allocations: 0.495 MB / 463.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.1186, allocations: 8.031 kB / 463.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006699/0.1193, allocations: 76.66 kB / 463.5 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003035/0.1196, allocations: 264.6 kB / 463.7 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.1196, allocations: 12.7 kB / 463.7 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.566e-05/0.1197, allocations: 20.31 kB / 463.7 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004191/0.1201, allocations: 276 kB / 464 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.1201, allocations: 0 / 464 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.363e-05/0.1202, allocations: 8 kB / 464 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.706e-05/0.1202, allocations: 16.31 kB / 464 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003307/0.1205, allocations: 220 kB / 464.3 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.1221, allocations: 1.206 MB / 465.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002552/0.1223, allocations: 133.2 kB / 465.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.077e-05/0.1224, allocations: 49.8 kB / 465.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.671e-05/0.1225, allocations: 0 / 465.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.187e-05/0.1225, allocations: 42.48 kB / 465.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.132e-06/0.1225, allocations: 0 / 465.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003743/0.1229, allocations: 161.3 kB / 465.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.478e-05/0.123, allocations: 85.03 kB / 465.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002331/0.1232, allocations: 215 kB / 466.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.1232, allocations: 25.7 kB / 466.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.1234, allocations: 155.9 kB / 466.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.076e-05/0.1234, allocations: 43.34 kB / 466.3 MB, free: 14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.454e-05/0.1235, allocations: 41.7 kB / 466.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.1236, allocations: 326.8 kB / 466.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.5e-05/0.1237, allocations: 47.97 kB / 466.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001323/0.1238, allocations: 124.9 kB / 466.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002043/0.1241, allocations: 186 kB / 467.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1241, allocations: 4 kB / 467.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002834/0.1244, allocations: 205.6 kB / 467.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.1244, allocations: 6.031 kB / 467.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1244, allocations: 4 kB / 467.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.1244, allocations: 7.938 kB / 467.3 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000227/0.1247, allocations: 60.25 kB / 467.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001141/0.1258, allocations: 1.321 MB / 468.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001727/0.126, allocations: 16 kB / 468.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.777e-05/0.126, allocations: 16 kB / 468.7 MB, free: 11.43 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001783/0.1262, allocations: 145.7 kB / 468.8 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.317e-05/0.1263, allocations: 19.75 kB / 468.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003393/0.1266, allocations: 143 kB / 469 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.1267, allocations: 0 / 469 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.235e-06/0.1267, allocations: 0 / 469 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1267, allocations: 4 kB / 469 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009411/0.1276, allocations: 0.496 MB / 469.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.1277, allocations: 0 / 469.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002608/0.1279, allocations: 31.92 kB / 469.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.1279, allocations: 3.984 kB / 469.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.128, allocations: 4 kB / 469.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001164/0.1291, allocations: 1.325 MB / 470.9 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1292, allocations: 0 / 470.9 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004822/0.1297, allocations: 316 kB / 471.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.712e-05/0.1297, allocations: 96.94 kB / 471.3 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.791e-05/0.1298, allocations: 0 / 471.3 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001791/0.13, allocations: 15.88 kB / 471.3 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.611e-05/0.13, allocations: 11.92 kB / 471.3 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.587e-05/0.1301, allocations: 4 kB / 471.3 MB, free: 8.574 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001828/0.1302, allocations: 151.3 kB / 471.4 MB, free: 8.426 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1303, allocations: 0 / 471.4 MB, free: 8.426 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005938/0.1309, allocations: 47.94 kB / 471.5 MB, free: 8.379 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.phi) * 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001229/0.131, allocations: 99.25 kB / 471.6 MB, free: 8.273 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004195/0.1314, allocations: 132.4 kB / 471.7 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.1314, allocations: 0 / 471.7 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002187/0.1317, allocations: 55.97 kB / 471.8 MB, free: 8.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006245/0.1323, allocations: 31.98 kB / 471.8 MB, free: 8.059 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001332/0.1337, allocations: 0.5812 MB / 472.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004196/0.1341, allocations: 0.7362 MB / 473.1 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001574/0.1343, allocations: 33.52 kB / 473.1 MB, free: 6.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.831e-05/0.1343, allocations: 23.42 kB / 473.2 MB, free: 6.621 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1343, allocations: 0 / 473.2 MB, free: 6.621 MB / 350.1 MB Notification: Performance of Templates: time 0.0062/0.1405, allocations: 1.416 MB / 474.6 MB, free: 5.215 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches