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.001165/0.001165, allocations: 107 kB / 16.62 MB, free: 6.812 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.001184/0.001184, allocations: 193.9 kB / 17.55 MB, free: 5.953 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.369/1.369, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1711/0.1711, allocations: 38.04 MB / 329.4 MB, free: 9.039 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 65.92 kB / 398.3 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1085, allocations: 58.06 MB / 456.4 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005851/0.1144, allocations: 3.558 MB / 459.9 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002037/0.1165, allocations: 1.279 MB / 461.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.1166, allocations: 11.94 kB / 461.2 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006212/0.1173, allocations: 151.4 kB / 461.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000401/0.1177, allocations: 155.4 kB / 461.5 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002796/0.118, allocations: 123.7 kB / 461.6 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003256/0.1183, allocations: 283 kB / 461.9 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003052/0.1186, allocations: 130.2 kB / 462 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002247/0.1189, allocations: 123.4 kB / 462.1 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001629/0.119, allocations: 111.5 kB / 462.3 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.646e-05/0.1191, allocations: 16 kB / 462.3 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003209/0.1194, allocations: 223.4 kB / 462.5 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.793e-05/0.1195, allocations: 63.8 kB / 462.6 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.1196, allocations: 99.48 kB / 462.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003941/0.12, allocations: 311 kB / 463 MB, free: 1.793 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.12, allocations: 0 / 463 MB, free: 1.793 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.12, allocations: 0 / 463 MB, free: 1.793 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.595e-06/0.12, allocations: 0 / 463 MB, free: 1.793 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.0007052/0.1208, allocations: 0.4911 MB / 463.4 MB, free: 1.254 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.1208, allocations: 12.03 kB / 463.5 MB, free: 1.242 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007201/0.1215, allocations: 72.67 kB / 463.5 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003133/0.1219, allocations: 256.7 kB / 463.8 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.1219, allocations: 12.7 kB / 463.8 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.075e-05/0.1219, allocations: 24.36 kB / 463.8 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004231/0.1224, allocations: 272 kB / 464.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.1224, allocations: 3.938 kB / 464.1 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.235e-05/0.1224, allocations: 4 kB / 464.1 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.099e-05/0.1225, allocations: 16.31 kB / 464.1 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003511/0.1228, allocations: 231.9 kB / 464.3 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001523/0.1243, allocations: 1.206 MB / 465.5 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002271/0.1246, allocations: 137.1 kB / 465.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.581e-05/0.1247, allocations: 53.83 kB / 465.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.204e-05/0.1247, allocations: 4 kB / 465.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.564e-05/0.1247, allocations: 30.56 kB / 465.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.392e-06/0.1247, allocations: 0 / 465.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003496/0.1251, allocations: 169.2 kB / 465.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/0.1252, allocations: 85.23 kB / 466 MB, free: 14.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001977/0.1254, allocations: 202.9 kB / 466.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.974e-05/0.1254, allocations: 33.7 kB / 466.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.514e-05/0.1255, allocations: 147.9 kB / 466.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.953e-05/0.1256, allocations: 51.34 kB / 466.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.169e-05/0.1257, allocations: 37.7 kB / 466.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.1258, allocations: 326.8 kB / 466.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.723e-05/0.1259, allocations: 43.97 kB / 466.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001628/0.1261, allocations: 136.9 kB / 467 MB, free: 13.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000219/0.1263, allocations: 186.5 kB / 467.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1263, allocations: 0 / 467.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003274/0.1266, allocations: 213.1 kB / 467.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.1267, allocations: 4 kB / 467.4 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.1267, allocations: 4 kB / 467.4 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.1267, allocations: 12.28 kB / 467.4 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002356/0.1269, allocations: 47.91 kB / 467.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001172/0.1281, allocations: 1.42 MB / 468.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001187/0.1282, allocations: 19.88 kB / 468.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.866e-05/0.1283, allocations: 8 kB / 468.9 MB, free: 11.37 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.0001341/0.1284, allocations: 145.7 kB / 469 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.741e-05/0.1285, allocations: 23.75 kB / 469 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000225/0.1287, allocations: 135 kB / 469.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.1287, allocations: 7.984 kB / 469.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.1287, allocations: 0 / 469.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.1287, allocations: 0 / 469.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006495/0.1294, allocations: 0.492 MB / 469.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.1294, allocations: 0 / 469.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001689/0.1296, allocations: 31.98 kB / 469.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.1296, allocations: 8.062 kB / 469.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.1296, allocations: 0 / 469.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000885/0.1305, allocations: 1.435 MB / 471.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1305, allocations: 0 / 471.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003464/0.1309, allocations: 308.8 kB / 471.4 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.065e-05/0.1309, allocations: 92.94 kB / 471.5 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.923e-05/0.131, allocations: 8 kB / 471.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.858e-05/0.1311, allocations: 0 / 471.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.737e-05/0.1311, allocations: 15.98 kB / 471.6 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.204e-05/0.1311, allocations: 4 kB / 471.6 MB, free: 8.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001766/0.1313, allocations: 143.2 kB / 471.7 MB, free: 8.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.673e-06/0.1313, allocations: 0 / 471.7 MB, free: 8.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003596/0.1317, allocations: 55.84 kB / 471.8 MB, free: 8.215 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.000201/0.1319, allocations: 107.2 kB / 471.9 MB, free: 8.102 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003632/0.1323, allocations: 139.7 kB / 472 MB, free: 7.965 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.1323, allocations: 0 / 472 MB, free: 7.965 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001623/0.1325, allocations: 52.59 kB / 472 MB, free: 7.914 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000395/0.1329, allocations: 36.17 kB / 472.1 MB, free: 7.879 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.1339, allocations: 0.5747 MB / 472.7 MB, free: 7.273 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003511/0.1343, allocations: 0.7359 MB / 473.4 MB, free: 6.508 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001217/0.1344, allocations: 33.52 kB / 473.4 MB, free: 6.473 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.224e-05/0.1344, allocations: 19.44 kB / 473.4 MB, free: 6.453 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1345, allocations: 288 / 473.4 MB, free: 6.453 MB / 350.1 MB Notification: Performance of Templates: time 0.004856/0.1393, allocations: 1.486 MB / 474.9 MB, free: 4.977 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