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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001665/0.001665, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00192/0.00192, allocations: 214.2 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.453/1.453, allocations: 230.6 MB / 258.2 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1881/0.1881, allocations: 38.56 MB / 353.2 MB, free: 12.3 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002152/0.002152, allocations: 71.91 kB / 493.7 MB, free: 4.195 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/0.2958, allocations: 62.46 MB / 0.5432 GB, free: 412 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006312/0.3021, allocations: 4.75 MB / 0.5478 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003766/0.3059, allocations: 2.343 MB / 0.5501 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002484/0.3062, allocations: 14 kB / 0.5501 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001284/0.3074, allocations: 429.1 kB / 0.5505 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001196/0.3086, allocations: 0.5087 MB / 0.551 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007245/0.3094, allocations: 288.9 kB / 0.5513 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008492/0.3102, allocations: 0.7328 MB / 0.552 GB, free: 9.598 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004749/0.3107, allocations: 290.4 kB / 0.5523 GB, free: 9.41 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000524/0.3112, allocations: 333 kB / 0.5526 GB, free: 9.223 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004903/0.3117, allocations: 330.7 kB / 0.5529 GB, free: 9.031 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.82e-05/0.3118, allocations: 37.19 kB / 0.5529 GB, free: 9.031 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009657/0.3127, allocations: 0.5346 MB / 0.5535 GB, free: 8.738 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002092/0.3129, allocations: 196.7 kB / 0.5537 GB, free: 8.613 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002397/0.3132, allocations: 213.9 kB / 0.5539 GB, free: 8.488 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001036/0.3142, allocations: 0.7625 MB / 0.5546 GB, free: 8.027 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.3142, allocations: 0 / 0.5546 GB, free: 8.027 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3142, allocations: 0 / 0.5546 GB, free: 8.027 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.3142, allocations: 1.062 kB / 0.5546 GB, free: 8.027 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.001188/0.3154, allocations: 0.7132 MB / 0.5553 GB, free: 7.445 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.3154, allocations: 17.92 kB / 0.5553 GB, free: 7.438 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001617/0.3171, allocations: 203.1 kB / 0.5555 GB, free: 7.344 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006154/0.3177, allocations: 302.6 kB / 0.5558 GB, free: 7.094 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.904e-05/0.3177, allocations: 37.89 kB / 0.5558 GB, free: 7.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.979e-05/0.3178, allocations: 43.69 kB / 0.5559 GB, free: 7.055 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001041/0.3188, allocations: 0.6281 MB / 0.5565 GB, free: 6.449 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.932e-05/0.3189, allocations: 3.953 kB / 0.5565 GB, free: 6.445 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.177e-05/0.3189, allocations: 27.92 kB / 0.5565 GB, free: 6.418 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.844e-05/0.319, allocations: 44.91 kB / 0.5566 GB, free: 6.375 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.32, allocations: 0.6011 MB / 0.5572 GB, free: 5.773 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003479/0.3235, allocations: 2.002 MB / 0.5591 GB, free: 3.676 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006512/0.3241, allocations: 373.5 kB / 0.5595 GB, free: 3.293 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003355/0.3245, allocations: 213.3 kB / 0.5597 GB, free: 3.082 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.809e-05/0.3245, allocations: 7.984 kB / 0.5597 GB, free: 3.074 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.693e-05/0.3245, allocations: 38.56 kB / 0.5597 GB, free: 3.027 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.665e-06/0.3245, allocations: 0 / 0.5597 GB, free: 3.027 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003614/0.3282, allocations: 1.559 MB / 0.5612 GB, free: 1.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.481e-05/0.3282, allocations: 85.11 kB / 0.5613 GB, free: 1.328 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002733/0.3285, allocations: 241.9 kB / 0.5615 GB, free: 1.082 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.696e-05/0.3285, allocations: 37.7 kB / 0.5616 GB, free: 1.039 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001654/0.3287, allocations: 236.3 kB / 0.5618 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.3288, allocations: 158.6 kB / 0.562 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001362/0.329, allocations: 86.19 kB / 0.562 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.3291, allocations: 346.7 kB / 0.5624 GB, free: 216 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002854/0.3294, allocations: 180.9 kB / 0.5625 GB, free: 36 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003951/0.3298, allocations: 285.8 kB / 0.5628 GB, free: 15.71 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007273/0.3305, allocations: 0.5082 MB / 0.5633 GB, free: 15.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3305, allocations: 0 / 0.5633 GB, free: 15.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001252/0.3318, allocations: 0.6695 MB / 0.564 GB, free: 14.48 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.3318, allocations: 11.94 kB / 0.564 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.3318, allocations: 4 kB / 0.564 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006114/0.3324, allocations: 176.7 kB / 0.5642 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003904/0.3328, allocations: 100.1 kB / 0.5642 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00376/0.3366, allocations: 2.632 MB / 0.5668 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003007/0.3369, allocations: 19.92 kB / 0.5668 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.936e-05/0.3369, allocations: 20 kB / 0.5669 GB, free: 11.42 MB / 414.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.0002813/0.3372, allocations: 197.7 kB / 0.567 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.354e-05/0.3373, allocations: 35.77 kB / 0.5671 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001258/0.3385, allocations: 0.6371 MB / 0.5677 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.3386, allocations: 4 kB / 0.5677 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.3386, allocations: 4 kB / 0.5677 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.3386, allocations: 0 / 0.5677 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002295/0.3409, allocations: 1.157 MB / 0.5688 GB, free: 9.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.3409, allocations: 4 kB / 0.5688 GB, free: 9.316 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000365/0.3412, allocations: 75.89 kB / 0.5689 GB, free: 9.242 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004762/0.3417, allocations: 148.8 kB / 0.5691 GB, free: 9.094 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.125e-05/0.3417, allocations: 8 kB / 0.5691 GB, free: 9.086 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003201/0.3449, allocations: 2.414 MB / 0.5714 GB, free: 6.57 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3449, allocations: 0 / 0.5714 GB, free: 6.57 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00158/0.3465, allocations: 0.9499 MB / 0.5723 GB, free: 5.586 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.943e-05/0.3466, allocations: 35.75 kB / 0.5724 GB, free: 5.551 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.251e-05/0.3467, allocations: 16 kB / 0.5724 GB, free: 5.535 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000216/0.3469, allocations: 12.03 kB / 0.5724 GB, free: 5.523 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.634e-05/0.347, allocations: 40.06 kB / 0.5724 GB, free: 5.484 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.488e-05/0.347, allocations: 15.98 kB / 0.5725 GB, free: 5.469 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001885/0.3472, allocations: 173.2 kB / 0.5726 GB, free: 5.301 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3472, allocations: 0 / 0.5726 GB, free: 5.301 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006589/0.3478, allocations: 136 kB / 0.5728 GB, free: 5.168 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.0001378/0.348, allocations: 111.3 kB / 0.5729 GB, free: 5.051 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001314/0.3493, allocations: 0.6541 MB / 0.5735 GB, free: 4.387 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3493, allocations: 3.938 kB / 0.5735 GB, free: 4.383 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007235/0.35, allocations: 403.4 kB / 0.5739 GB, free: 3.977 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005041/0.3505, allocations: 64.86 kB / 0.574 GB, free: 3.922 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002049/0.3526, allocations: 1.187 MB / 0.5751 GB, free: 2.688 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/0.3529, allocations: 266.7 kB / 0.5754 GB, free: 2.402 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.353, allocations: 35.42 kB / 0.5754 GB, free: 2.367 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.353, allocations: 0 / 0.5754 GB, free: 2.367 MB / 414.1 MB Notification: Performance of Templates: time 0.01058/0.3636, allocations: 7.103 MB / 0.5823 GB, free: 11.25 MB / 430.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins1/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: 8.293453731108457]