Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 184 kB / 23.71 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 225.6 MB / 252.5 MB, free: 12.99 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1905/0.1905, allocations: 38.55 MB / 346.3 MB, free: 2.188 MB / 270.1 MB " [Timeout remaining time 180] 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.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 71.88 kB / 484.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4056/0.4076, allocations: 61.29 MB / 0.533 GB, free: 5.578 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005801/0.4134, allocations: 5.058 MB / 0.538 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003049/0.4164, allocations: 2.527 MB / 0.5404 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003029/0.4167, allocations: 18.62 kB / 0.5405 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001393/0.4181, allocations: 453.6 kB / 0.5409 GB, free: 15.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001262/0.4194, allocations: 0.5045 MB / 0.5414 GB, free: 15.12 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007737/0.4202, allocations: 288.6 kB / 0.5417 GB, free: 14.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001033/0.4212, allocations: 0.7451 MB / 0.5424 GB, free: 14.48 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004751/0.4217, allocations: 244.4 kB / 0.5426 GB, free: 14.33 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005164/0.4222, allocations: 330.1 kB / 0.5429 GB, free: 14.14 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005062/0.4227, allocations: 355.1 kB / 0.5433 GB, free: 13.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.031e-05/0.4228, allocations: 36.19 kB / 0.5433 GB, free: 13.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001252/0.424, allocations: 0.6561 MB / 0.544 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002419/0.4243, allocations: 200.3 kB / 0.5441 GB, free: 13.44 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003022/0.4246, allocations: 249.9 kB / 0.5444 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001316/0.4259, allocations: 0.7719 MB / 0.5451 GB, free: 12.8 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.4259, allocations: 0 / 0.5451 GB, free: 12.8 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4259, allocations: 0 / 0.5451 GB, free: 12.8 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.277e-06/0.4259, allocations: 1.156 kB / 0.5451 GB, free: 12.8 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001445/0.4273, allocations: 0.7058 MB / 0.5458 GB, free: 12.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.4274, allocations: 8.688 kB / 0.5458 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001818/0.4292, allocations: 211.8 kB / 0.546 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007151/0.4299, allocations: 301.5 kB / 0.5463 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.08e-05/0.4299, allocations: 29.69 kB / 0.5464 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.4301, allocations: 48.5 kB / 0.5464 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001165/0.4312, allocations: 0.6291 MB / 0.547 GB, free: 11.44 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.474e-05/0.4312, allocations: 1.031 kB / 0.547 GB, free: 11.44 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.361e-05/0.4313, allocations: 16.53 kB / 0.547 GB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.912e-05/0.4314, allocations: 35.05 kB / 0.5471 GB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.4324, allocations: 0.6062 MB / 0.5477 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003836/0.4362, allocations: 2.188 MB / 0.5498 GB, free: 9.438 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006565/0.4369, allocations: 382.2 kB / 0.5502 GB, free: 9.219 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000326/0.4372, allocations: 210.1 kB / 0.5504 GB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.932e-05/0.4372, allocations: 4.469 kB / 0.5504 GB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.093e-05/0.4373, allocations: 37.47 kB / 0.5504 GB, free: 9.066 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.745e-06/0.4373, allocations: 0 / 0.5504 GB, free: 9.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003779/0.4411, allocations: 1.563 MB / 0.5519 GB, free: 8.156 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.148e-05/0.4411, allocations: 86.39 kB / 0.552 GB, free: 8.059 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003339/0.4415, allocations: 280 kB / 0.5523 GB, free: 7.875 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.787e-05/0.4415, allocations: 30.86 kB / 0.5523 GB, free: 7.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001941/0.4417, allocations: 238.7 kB / 0.5525 GB, free: 7.621 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001554/0.4419, allocations: 157.5 kB / 0.5527 GB, free: 7.484 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/0.442, allocations: 89.22 kB / 0.5528 GB, free: 7.426 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.4422, allocations: 351.8 kB / 0.5531 GB, free: 7.082 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003068/0.4425, allocations: 176.5 kB / 0.5533 GB, free: 7 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004348/0.4429, allocations: 293.7 kB / 0.5535 GB, free: 6.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007495/0.4437, allocations: 0.5041 MB / 0.554 GB, free: 6.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.4437, allocations: 0 / 0.554 GB, free: 6.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001301/0.445, allocations: 0.6734 MB / 0.5547 GB, free: 5.496 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.445, allocations: 8 kB / 0.5547 GB, free: 5.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.445, allocations: 4 kB / 0.5547 GB, free: 5.484 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006211/0.4456, allocations: 180.6 kB / 0.5549 GB, free: 5.305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003828/0.446, allocations: 100.1 kB / 0.555 GB, free: 5.207 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003969/0.45, allocations: 2.685 MB / 0.5576 GB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004069/0.4504, allocations: 31.91 kB / 0.5576 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.209e-05/0.4504, allocations: 16 kB / 0.5576 GB, free: 2.371 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0003875/0.4508, allocations: 193.7 kB / 0.5578 GB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.4509, allocations: 39.7 kB / 0.5579 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001386/0.4523, allocations: 0.6334 MB / 0.5585 GB, free: 1.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.188e-05/0.4524, allocations: 8 kB / 0.5585 GB, free: 1.473 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.4524, allocations: 0 / 0.5585 GB, free: 1.473 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.212e-05/0.4524, allocations: 3.938 kB / 0.5585 GB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002606/0.455, allocations: 1.316 MB / 0.5598 GB, free: 80 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.455, allocations: 3.938 kB / 0.5598 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003816/0.4554, allocations: 75.89 kB / 0.5599 GB, free: 0 / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005135/0.4559, allocations: 152.8 kB / 0.56 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.29e-05/0.456, allocations: 8 kB / 0.56 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003408/0.4594, allocations: 2.457 MB / 0.5624 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/0.4594, allocations: 8.031 kB / 0.5624 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001661/0.461, allocations: 0.9498 MB / 0.5633 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001203/0.4611, allocations: 35.77 kB / 0.5634 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.353e-05/0.4612, allocations: 11.94 kB / 0.5634 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002158/0.4614, allocations: 16.03 kB / 0.5634 GB, free: 12.22 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.381e-05/0.4615, allocations: 31.94 kB / 0.5634 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-05/0.4615, allocations: 23.98 kB / 0.5635 GB, free: 12.17 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002668/0.4618, allocations: 195.1 kB / 0.5636 GB, free: 11.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4618, allocations: 0 / 0.5636 GB, free: 11.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007348/0.4625, allocations: 136 kB / 0.5638 GB, free: 11.84 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001485/0.4627, allocations: 107.2 kB / 0.5639 GB, free: 11.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001342/0.464, allocations: 0.654 MB / 0.5645 GB, free: 11.06 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.464, allocations: 0 / 0.5645 GB, free: 11.06 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000746/0.4648, allocations: 410.8 kB / 0.5649 GB, free: 10.65 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005229/0.4653, allocations: 70.53 kB / 0.565 GB, free: 10.58 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002249/0.4676, allocations: 1.137 MB / 0.5661 GB, free: 9.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006017/0.4682, allocations: 0.8708 MB / 0.5669 GB, free: 8.516 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002231/0.4684, allocations: 75.22 kB / 0.567 GB, free: 8.441 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.4685, allocations: 31.42 kB / 0.567 GB, free: 8.41 MB / 414.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4685, allocations: 8 kB / 0.567 GB, free: 8.402 MB / 414.1 MB Notification: Performance of Templates: time 0.01338/0.4819, allocations: 6.31 MB / 0.5732 GB, free: 2.105 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.473557224497199]