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.001248/0.001248, allocations: 92.53 kB / 16.3 MB, free: 5.527 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.001392/0.001392, allocations: 184.5 kB / 17.2 MB, free: 5.461 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.231/1.231, allocations: 223.2 MB / 241.1 MB, free: 14.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1621/0.1621, allocations: 38.08 MB / 330.3 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003034/0.0003034, allocations: 9.25 kB / 400 MB, free: 34.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09493/0.09525, allocations: 59.17 MB / 459.1 MB, free: 7.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.003256/0.09853, allocations: 2.994 MB / 462.1 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001385/0.09994, allocations: 1.171 MB / 463.3 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.1001, allocations: 11.94 kB / 463.3 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001045/0.1002, allocations: 39.69 kB / 463.3 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003347/0.1005, allocations: 127.6 kB / 463.5 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002064/0.1007, allocations: 103.7 kB / 463.6 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000226/0.101, allocations: 167.6 kB / 463.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000427/0.1014, allocations: 250.9 kB / 464 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.1016, allocations: 95.61 kB / 464.1 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001243/0.1017, allocations: 75.69 kB / 464.1 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.76e-05/0.1017, allocations: 8 kB / 464.2 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001967/0.1019, allocations: 107.8 kB / 464.3 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.004e-05/0.102, allocations: 43.89 kB / 464.3 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.927e-05/0.102, allocations: 61.58 kB / 464.4 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002242/0.1023, allocations: 203.5 kB / 464.6 MB, free: 1.926 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.673e-06/0.1023, allocations: 0 / 464.6 MB, free: 1.926 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1023, allocations: 0 / 464.6 MB, free: 1.926 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.319e-06/0.1023, allocations: 4 kB / 464.6 MB, free: 1.922 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.0005201/0.1028, allocations: 466.8 kB / 465 MB, free: 1.418 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.06e-05/0.1029, allocations: 12.03 kB / 465 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006299/0.1035, allocations: 75.73 kB / 465.1 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00029/0.1038, allocations: 259.4 kB / 465.4 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.1038, allocations: 12.33 kB / 465.4 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.542e-05/0.1039, allocations: 19.95 kB / 465.4 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000378/0.1043, allocations: 275.8 kB / 465.7 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.1043, allocations: 4 kB / 465.7 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.155e-05/0.1043, allocations: 4 kB / 465.7 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.835e-05/0.1043, allocations: 12.33 kB / 465.7 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003092/0.1046, allocations: 224.3 kB / 465.9 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001397/0.1061, allocations: 1.214 MB / 467.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002165/0.1063, allocations: 141.2 kB / 467.3 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.787e-05/0.1063, allocations: 0 / 467.3 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/0.1064, allocations: 42.56 kB / 467.3 MB, free: 14.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.142e-06/0.1064, allocations: 0 / 467.3 MB, free: 14.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003238/0.1067, allocations: 161.5 kB / 467.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.306e-05/0.1067, allocations: 81.11 kB / 467.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001821/0.1069, allocations: 210.9 kB / 467.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.107, allocations: 25.7 kB / 467.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.55e-05/0.107, allocations: 151.9 kB / 467.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.179e-05/0.1071, allocations: 43.36 kB / 468 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.825e-06/0.1071, allocations: 4.125 kB / 468 MB, free: 14.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.1072, allocations: 334.8 kB / 468.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.903e-05/0.1073, allocations: 39.98 kB / 468.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.1074, allocations: 118.1 kB / 468.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.319e-05/0.1075, allocations: 63.92 kB / 468.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.1076, allocations: 7.984 kB / 468.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002688/0.1078, allocations: 205.1 kB / 468.7 MB, free: 13.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.1079, allocations: 4 kB / 468.7 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.1079, allocations: 4 kB / 468.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.1079, allocations: 4 kB / 468.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002176/0.1081, allocations: 55.91 kB / 468.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008602/0.109, allocations: 1.329 MB / 470.1 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.1091, allocations: 27.73 kB / 470.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.576e-05/0.1091, allocations: 8 kB / 470.1 MB, free: 11.88 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.000106/0.1092, allocations: 150 kB / 470.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.413e-05/0.1093, allocations: 15.81 kB / 470.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001982/0.1095, allocations: 135.6 kB / 470.4 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.1095, allocations: 4 kB / 470.4 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-06/0.1095, allocations: 3.938 kB / 470.4 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1095, allocations: 4 kB / 470.4 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005428/0.1101, allocations: 499.9 kB / 470.9 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.1101, allocations: 0 / 470.9 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000157/0.1102, allocations: 35.92 kB / 471 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1102, allocations: 0 / 471 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.1103, allocations: 4.094 kB / 471 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006773/0.1109, allocations: 1.341 MB / 472.3 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.111, allocations: 0 / 472.3 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00029/0.1113, allocations: 338.5 kB / 472.6 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.313e-05/0.1113, allocations: 100.8 kB / 472.7 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/0.1113, allocations: 4 kB / 472.7 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.605e-05/0.1114, allocations: 4 kB / 472.8 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.698e-05/0.1115, allocations: 15.92 kB / 472.8 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-06/0.1115, allocations: 4 kB / 472.8 MB, free: 8.977 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001087/0.1116, allocations: 152.7 kB / 472.9 MB, free: 8.828 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1116, allocations: 0 / 472.9 MB, free: 8.828 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003021/0.1119, allocations: 44 kB / 473 MB, free: 8.785 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 9.343e-05/0.112, allocations: 99.14 kB / 473.1 MB, free: 8.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002722/0.1123, allocations: 128.5 kB / 473.2 MB, free: 8.555 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.1123, allocations: 4.062 kB / 473.2 MB, free: 8.551 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.1125, allocations: 59.91 kB / 473.2 MB, free: 8.492 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002723/0.1127, allocations: 28.14 kB / 473.3 MB, free: 8.465 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008384/0.1136, allocations: 0.6146 MB / 473.9 MB, free: 7.816 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002801/0.1139, allocations: 0.7556 MB / 474.6 MB, free: 7.035 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.319e-05/0.114, allocations: 25.53 kB / 474.7 MB, free: 7.012 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.444e-05/0.114, allocations: 15.44 kB / 474.7 MB, free: 6.996 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.114, allocations: 0 / 474.7 MB, free: 6.996 MB / 350.1 MB Notification: Performance of Templates: time 0.00359/0.1176, allocations: 1.365 MB / 476.1 MB, free: 5.637 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