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.0008558/0.0008559, allocations: 91.88 kB / 16.65 MB, free: 6.586 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.001109/0.001109, allocations: 182 kB / 17.56 MB, free: 6.203 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.185/1.185, allocations: 223.3 MB / 241.6 MB, free: 14.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1569/0.1569, allocations: 38.09 MB / 330.8 MB, free: 8.504 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002855/0.0002855, allocations: 8 kB / 400.7 MB, free: 34.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08818/0.08848, allocations: 59.16 MB / 459.9 MB, free: 7.02 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.003182/0.09169, allocations: 3.199 MB / 463.1 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001348/0.09305, allocations: 1.256 MB / 464.3 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001098/0.09318, allocations: 11.94 kB / 464.4 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001203/0.09331, allocations: 31.77 kB / 464.4 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003773/0.09369, allocations: 159.3 kB / 464.5 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000262/0.09397, allocations: 119.7 kB / 464.7 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003626/0.09434, allocations: 394.7 kB / 465 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004093/0.09476, allocations: 258.9 kB / 465.3 MB, free: 1.562 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001352/0.0949, allocations: 103.5 kB / 465.4 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.09505, allocations: 107.5 kB / 465.5 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.765e-05/0.09508, allocations: 8 kB / 465.5 MB, free: 1.348 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003611/0.09545, allocations: 275.3 kB / 465.8 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.181e-05/0.09552, allocations: 63.8 kB / 465.8 MB, free: 1.016 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.861e-05/0.09561, allocations: 109.2 kB / 466 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003034/0.09592, allocations: 299 kB / 466.2 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.09594, allocations: 3.938 kB / 466.2 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.021e-06/0.09594, allocations: 0 / 466.2 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.09595, allocations: 0 / 466.2 MB, free: 0.6055 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.000466/0.09642, allocations: 463 kB / 466.7 MB, free: 108 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.09646, allocations: 16.02 kB / 466.7 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005877/0.09706, allocations: 76.67 kB / 466.8 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002615/0.09733, allocations: 260.6 kB / 467 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.09735, allocations: 12.69 kB / 467.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.974e-05/0.0974, allocations: 20.38 kB / 467.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003544/0.09776, allocations: 276 kB / 467.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.09778, allocations: 4 kB / 467.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.017e-05/0.09781, allocations: 4 kB / 467.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.689e-05/0.09784, allocations: 20.31 kB / 467.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003093/0.09815, allocations: 224.3 kB / 467.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001325/0.09949, allocations: 1.206 MB / 468.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001932/0.09969, allocations: 141.2 kB / 468.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.414e-05/0.09977, allocations: 41.8 kB / 469 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.09979, allocations: 7.984 kB / 469 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.821e-05/0.09981, allocations: 30.56 kB / 469 MB, free: 13.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.222e-06/0.09982, allocations: 0 / 469 MB, free: 13.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003152/0.1001, allocations: 177.3 kB / 469.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.1002, allocations: 77.11 kB / 469.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001737/0.1004, allocations: 206.9 kB / 469.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.1004, allocations: 29.7 kB / 469.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.059e-05/0.1005, allocations: 151.9 kB / 469.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.236e-05/0.1005, allocations: 47.34 kB / 469.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.14e-05/0.1006, allocations: 21.7 kB / 469.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.712e-05/0.1007, allocations: 331 kB / 470 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.586e-05/0.1007, allocations: 43.97 kB / 470.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001051/0.1008, allocations: 130 kB / 470.2 MB, free: 12.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001925/0.101, allocations: 182.2 kB / 470.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.1011, allocations: 0 / 470.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002721/0.1013, allocations: 205.6 kB / 470.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.1014, allocations: 6.531 kB / 470.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.1014, allocations: 11.94 kB / 470.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.1014, allocations: 7.938 kB / 470.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002091/0.1016, allocations: 47.97 kB / 470.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000778/0.1024, allocations: 1.325 MB / 472 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.1025, allocations: 19.75 kB / 472 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.456e-05/0.1025, allocations: 8 kB / 472 MB, free: 10.34 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.0001149/0.1026, allocations: 149.7 kB / 472.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.309e-05/0.1027, allocations: 19.75 kB / 472.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002082/0.1029, allocations: 151 kB / 472.3 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.1029, allocations: 4.094 kB / 472.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.524e-06/0.1029, allocations: 4 kB / 472.3 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.1029, allocations: 0 / 472.3 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005698/0.1035, allocations: 495.9 kB / 472.8 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1035, allocations: 0 / 472.8 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001565/0.1037, allocations: 27.98 kB / 472.8 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.1037, allocations: 0 / 472.8 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.1037, allocations: 4.062 kB / 472.8 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007031/0.1044, allocations: 1.333 MB / 474.2 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.1044, allocations: 4.188 kB / 474.2 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002843/0.1047, allocations: 305.8 kB / 474.5 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.815e-05/0.1048, allocations: 96.91 kB / 474.6 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.276e-05/0.1048, allocations: 4 kB / 474.6 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.123e-05/0.1049, allocations: 7.938 kB / 474.6 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.569e-05/0.105, allocations: 12.05 kB / 474.6 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.105, allocations: 4 kB / 474.6 MB, free: 7.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001148/0.1051, allocations: 147.2 kB / 474.7 MB, free: 7.336 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1051, allocations: 0 / 474.7 MB, free: 7.336 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003227/0.1054, allocations: 47.84 kB / 474.8 MB, free: 7.289 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 9.629e-05/0.1055, allocations: 111.2 kB / 474.9 MB, free: 7.172 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002791/0.1058, allocations: 131.8 kB / 475 MB, free: 7.043 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1058, allocations: 0 / 475 MB, free: 7.043 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.106, allocations: 55.91 kB / 475.1 MB, free: 6.988 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003743/0.1064, allocations: 31.98 kB / 475.1 MB, free: 6.957 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008652/0.1072, allocations: 0.6396 MB / 475.8 MB, free: 6.285 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002705/0.1075, allocations: 0.744 MB / 476.5 MB, free: 5.512 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.467e-05/0.1076, allocations: 29.52 kB / 476.5 MB, free: 5.484 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.549e-05/0.1077, allocations: 15.44 kB / 476.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1077, allocations: 4 kB / 476.5 MB, free: 5.465 MB / 350.1 MB Notification: Performance of Templates: time 0.003624/0.1113, allocations: 1.404 MB / 478 MB, free: 4.07 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