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.0007504/0.0007508, allocations: 84.19 kB / 16.31 MB, free: 6.453 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.0009113/0.0009114, allocations: 179.5 kB / 17.21 MB, free: 6.328 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.214/1.214, allocations: 223.3 MB / 241.2 MB, free: 328 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1589/0.1589, allocations: 38.1 MB / 330.4 MB, free: 8.883 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002507/0.0002508, allocations: 8 kB / 400.1 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08629/0.08656, allocations: 59.16 MB / 459.2 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.003396/0.08999, allocations: 3.076 MB / 462.3 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0015/0.09152, allocations: 1.202 MB / 463.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.09168, allocations: 11.94 kB / 463.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001506/0.09184, allocations: 35.7 kB / 463.6 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004324/0.09228, allocations: 135.3 kB / 463.7 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002276/0.09251, allocations: 103.7 kB / 463.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003279/0.09285, allocations: 318.9 kB / 464.1 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004189/0.09328, allocations: 247 kB / 464.4 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001524/0.09344, allocations: 99.5 kB / 464.4 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001444/0.0936, allocations: 103.6 kB / 464.6 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.925e-05/0.09363, allocations: 15.94 kB / 464.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001957/0.09383, allocations: 111.7 kB / 464.7 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.19e-05/0.0939, allocations: 55.81 kB / 464.7 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.01e-05/0.09395, allocations: 65.58 kB / 464.8 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002101/0.09417, allocations: 199.5 kB / 465 MB, free: 1.629 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.09418, allocations: 0 / 465 MB, free: 1.629 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.09419, allocations: 0 / 465 MB, free: 1.629 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.0942, allocations: 0 / 465 MB, free: 1.629 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.0005093/0.09471, allocations: 470.9 kB / 465.4 MB, free: 1.121 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/0.09475, allocations: 12.03 kB / 465.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00058/0.09534, allocations: 75.73 kB / 465.5 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002765/0.09562, allocations: 255.4 kB / 465.8 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.09565, allocations: 12.33 kB / 465.8 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.137e-05/0.0957, allocations: 19.95 kB / 465.8 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003872/0.09609, allocations: 275.8 kB / 466.1 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.09612, allocations: 3.984 kB / 466.1 MB, free: 428 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.227e-05/0.09614, allocations: 8 kB / 466.1 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.813e-05/0.09618, allocations: 12.33 kB / 466.1 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003245/0.09651, allocations: 224.3 kB / 466.3 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001451/0.09797, allocations: 1.21 MB / 467.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001971/0.09818, allocations: 133.2 kB / 467.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.442e-05/0.09826, allocations: 45.77 kB / 467.7 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.09829, allocations: 4 kB / 467.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/0.09832, allocations: 38.56 kB / 467.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.222e-06/0.09833, allocations: 0 / 467.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.000309/0.09864, allocations: 161.3 kB / 467.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.09871, allocations: 81.11 kB / 468 MB, free: 14.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001897/0.0989, allocations: 210.9 kB / 468.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.496e-05/0.09892, allocations: 25.7 kB / 468.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.854e-05/0.09903, allocations: 155.9 kB / 468.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.291e-05/0.09907, allocations: 39.36 kB / 468.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.928e-06/0.09908, allocations: 8.125 kB / 468.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.09921, allocations: 330.8 kB / 468.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.899e-05/0.09929, allocations: 39.98 kB / 468.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.09941, allocations: 130.1 kB / 468.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.416e-05/0.09952, allocations: 59.98 kB / 469 MB, free: 13.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.09953, allocations: 0 / 469 MB, free: 13.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002806/0.09982, allocations: 213.5 kB / 469.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.09984, allocations: 8 kB / 469.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.09985, allocations: 0 / 469.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.09987, allocations: 11.92 kB / 469.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002135/0.1001, allocations: 47.97 kB / 469.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007803/0.1009, allocations: 1.329 MB / 470.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.573e-05/0.101, allocations: 23.75 kB / 470.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.101, allocations: 11.94 kB / 470.6 MB, free: 11.54 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001054/0.1011, allocations: 145.9 kB / 470.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.156e-05/0.1012, allocations: 15.81 kB / 470.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002135/0.1014, allocations: 146.9 kB / 470.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1014, allocations: 0 / 470.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.1014, allocations: 4 kB / 470.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.1014, allocations: 3.953 kB / 470.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000577/0.102, allocations: 500 kB / 471.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.102, allocations: 0 / 471.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001521/0.1022, allocations: 27.98 kB / 471.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1022, allocations: 0 / 471.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.1022, allocations: 7.953 kB / 471.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007713/0.103, allocations: 1.329 MB / 472.8 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.103, allocations: 0 / 472.8 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002926/0.1033, allocations: 302 kB / 473.1 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.968e-05/0.1034, allocations: 112.8 kB / 473.2 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.353e-05/0.1034, allocations: 3.953 kB / 473.2 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.813e-05/0.1035, allocations: 8 kB / 473.2 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.304e-05/0.1035, allocations: 7.984 kB / 473.2 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.719e-06/0.1035, allocations: 4 kB / 473.2 MB, free: 8.688 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001106/0.1036, allocations: 148.6 kB / 473.3 MB, free: 8.543 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1037, allocations: 0 / 473.3 MB, free: 8.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000296/0.104, allocations: 48.06 kB / 473.4 MB, free: 8.496 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.448e-05/0.104, allocations: 103.1 kB / 473.5 MB, free: 8.387 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002608/0.1043, allocations: 130.9 kB / 473.6 MB, free: 8.262 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1043, allocations: 0 / 473.6 MB, free: 8.262 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.1045, allocations: 60.81 kB / 473.7 MB, free: 8.203 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003356/0.1048, allocations: 32.11 kB / 473.7 MB, free: 8.172 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000827/0.1056, allocations: 0.6183 MB / 474.3 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002683/0.1059, allocations: 0.744 MB / 475.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.783e-05/0.106, allocations: 33.53 kB / 475.1 MB, free: 6.719 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.361e-05/0.1061, allocations: 15.44 kB / 475.1 MB, free: 6.703 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1061, allocations: 0 / 475.1 MB, free: 6.703 MB / 350.1 MB Notification: Performance of Templates: time 0.003578/0.1096, allocations: 1.365 MB / 476.5 MB, free: 5.344 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches