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.001087/0.001087, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001154/0.001154, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.424/1.424, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1765/0.1765, allocations: 38.04 MB / 329.7 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 70.47 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1093, allocations: 58.06 MB / 456.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005729/0.115, allocations: 3.308 MB / 460.2 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001887/0.117, allocations: 1.232 MB / 461.4 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002165/0.1172, allocations: 11.94 kB / 461.4 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008038/0.118, allocations: 151.3 kB / 461.6 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005889/0.1186, allocations: 171.2 kB / 461.7 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004203/0.119, allocations: 131.6 kB / 461.9 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004517/0.1195, allocations: 287 kB / 462.1 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003262/0.1198, allocations: 118.2 kB / 462.3 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002914/0.1202, allocations: 119.5 kB / 462.4 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002362/0.1204, allocations: 115.5 kB / 462.5 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.201e-05/0.1204, allocations: 12 kB / 462.5 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004675/0.1209, allocations: 231.4 kB / 462.7 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.121, allocations: 59.8 kB / 462.8 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001375/0.1212, allocations: 99.48 kB / 462.9 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005151/0.1217, allocations: 279.1 kB / 463.2 MB, free: 1.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1217, allocations: 0 / 463.2 MB, free: 1.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1217, allocations: 0 / 463.2 MB, free: 1.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.788e-06/0.1217, allocations: 0 / 463.2 MB, free: 1.75 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.0007647/0.1225, allocations: 0.5067 MB / 463.7 MB, free: 1.195 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.1226, allocations: 8.031 kB / 463.7 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006736/0.1232, allocations: 72.67 kB / 463.7 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003158/0.1236, allocations: 260.6 kB / 464 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.1236, allocations: 12.7 kB / 464 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.173e-05/0.1236, allocations: 16.38 kB / 464 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000417/0.1241, allocations: 280 kB / 464.3 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.1241, allocations: 0 / 464.3 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.437e-05/0.1241, allocations: 11.98 kB / 464.3 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.633e-05/0.1241, allocations: 8.328 kB / 464.3 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003408/0.1245, allocations: 228 kB / 464.5 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001672/0.1262, allocations: 1.206 MB / 465.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002224/0.1264, allocations: 141.2 kB / 465.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.249e-05/0.1265, allocations: 45.77 kB / 465.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.1265, allocations: 0 / 465.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.1265, allocations: 38.5 kB / 466 MB, free: 14.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.412e-06/0.1266, allocations: 0 / 466 MB, free: 14.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003405/0.1269, allocations: 173.3 kB / 466.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/0.127, allocations: 77.11 kB / 466.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001843/0.1272, allocations: 206.9 kB / 466.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.1272, allocations: 29.7 kB / 466.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.954e-05/0.1273, allocations: 151.9 kB / 466.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.118e-05/0.1273, allocations: 47.48 kB / 466.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.001e-05/0.1274, allocations: 41.7 kB / 466.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.1275, allocations: 330.8 kB / 467 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.818e-05/0.1276, allocations: 39.98 kB / 467 MB, free: 13.56 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.1277, allocations: 133 kB / 467.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002044/0.1279, allocations: 186.5 kB / 467.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.1279, allocations: 4 kB / 467.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002946/0.1282, allocations: 205.1 kB / 467.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.1283, allocations: 8 kB / 467.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.1283, allocations: 3.938 kB / 467.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.1283, allocations: 7.938 kB / 467.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002325/0.1285, allocations: 55.89 kB / 467.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009751/0.1295, allocations: 1.416 MB / 469 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/0.1296, allocations: 15.84 kB / 469.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.1297, allocations: 16.14 kB / 469.1 MB, free: 11.31 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.0001334/0.1298, allocations: 153.6 kB / 469.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.1e-05/0.1299, allocations: 15.81 kB / 469.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002158/0.1301, allocations: 142.9 kB / 469.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.1301, allocations: 0 / 469.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.1301, allocations: 4 kB / 469.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.1301, allocations: 0 / 469.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005991/0.1307, allocations: 496 kB / 469.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.1307, allocations: 0 / 469.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001711/0.1309, allocations: 35.92 kB / 469.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.1309, allocations: 0 / 469.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.1309, allocations: 7.984 kB / 469.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008058/0.1318, allocations: 1.42 MB / 471.3 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.1318, allocations: 0 / 471.3 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000313/0.1321, allocations: 313.8 kB / 471.6 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.454e-05/0.1322, allocations: 100.9 kB / 471.7 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.373e-05/0.1322, allocations: 0 / 471.7 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.34e-05/0.1323, allocations: 7.984 kB / 471.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.004e-05/0.1323, allocations: 16.05 kB / 471.8 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.151e-05/0.1323, allocations: 4 kB / 471.8 MB, free: 8.355 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00012/0.1325, allocations: 148.6 kB / 471.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1325, allocations: 0 / 471.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003354/0.1328, allocations: 51.84 kB / 472 MB, free: 8.16 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.0001086/0.1329, allocations: 99.25 kB / 472.1 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003208/0.1333, allocations: 139.8 kB / 472.2 MB, free: 7.918 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.1333, allocations: 4 kB / 472.2 MB, free: 7.914 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001511/0.1334, allocations: 59.94 kB / 472.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003764/0.1338, allocations: 33.17 kB / 472.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009496/0.1348, allocations: 0.5168 MB / 472.8 MB, free: 7.281 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.1351, allocations: 0.7398 MB / 473.5 MB, free: 6.516 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.981e-05/0.1352, allocations: 33.5 kB / 473.6 MB, free: 6.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.659e-05/0.1352, allocations: 15.44 kB / 473.6 MB, free: 6.465 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1352, allocations: 0 / 473.6 MB, free: 6.465 MB / 350.1 MB Notification: Performance of Templates: time 0.0043/0.1395, allocations: 1.491 MB / 475.1 MB, free: 4.98 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