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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 114.9 kB / 19.04 MB, free: 3.281 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.001327/0.001327, allocations: 190 kB / 22.21 MB, free: 112 kB / 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.452/1.452, allocations: 225.6 MB / 250.8 MB, free: 13.41 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.1791/0.1791, allocations: 38.53 MB / 344.5 MB, free: 2.613 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.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 67.84 kB / 482.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.3244, allocations: 61.24 MB / 0.5306 GB, free: 5.734 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004661/0.3291, allocations: 3.415 MB / 0.5339 GB, free: 3.348 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.3311, allocations: 1.244 MB / 0.5351 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001902/0.3313, allocations: 5.562 kB / 0.5351 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007725/0.332, allocations: 162.7 kB / 0.5353 GB, free: 2.375 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005264/0.3326, allocations: 180.3 kB / 0.5354 GB, free: 2.273 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000361/0.3329, allocations: 134.9 kB / 0.5356 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002939/0.3332, allocations: 284.2 kB / 0.5358 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002248/0.3334, allocations: 101.3 kB / 0.5359 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001731/0.3336, allocations: 124.3 kB / 0.5361 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001695/0.3338, allocations: 119.4 kB / 0.5362 GB, free: 1.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.352e-05/0.3338, allocations: 12.38 kB / 0.5362 GB, free: 1.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002967/0.3341, allocations: 240 kB / 0.5364 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.416e-05/0.3342, allocations: 59.02 kB / 0.5365 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.314e-05/0.3343, allocations: 100.5 kB / 0.5366 GB, free: 1.586 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003602/0.3346, allocations: 286.2 kB / 0.5368 GB, free: 1.414 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3346, allocations: 4 kB / 0.5368 GB, free: 1.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3346, allocations: 0 / 0.5368 GB, free: 1.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.862e-06/0.3346, allocations: 0 / 0.5368 GB, free: 1.41 MB / 382.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.0005994/0.3352, allocations: 0.5172 MB / 0.5373 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.3353, allocations: 9.625 kB / 0.5374 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007191/0.336, allocations: 76.53 kB / 0.5374 GB, free: 0.875 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002969/0.3363, allocations: 264.7 kB / 0.5377 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.3363, allocations: 15.22 kB / 0.5377 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.455e-05/0.3364, allocations: 15.19 kB / 0.5377 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004116/0.3368, allocations: 282.6 kB / 0.538 GB, free: 404 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.3368, allocations: 0 / 0.538 GB, free: 404 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.533e-05/0.3368, allocations: 6.844 kB / 0.538 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.224e-05/0.3368, allocations: 14.66 kB / 0.538 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003297/0.3372, allocations: 221.2 kB / 0.5382 GB, free: 288 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00156/0.3387, allocations: 1.199 MB / 0.5394 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002347/0.339, allocations: 130.4 kB / 0.5395 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.89e-05/0.339, allocations: 47.97 kB / 0.5395 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.3391, allocations: 2.375 kB / 0.5396 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.203e-05/0.3391, allocations: 35.78 kB / 0.5396 GB, free: 15.01 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.272e-06/0.3391, allocations: 0 / 0.5396 GB, free: 15.01 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003708/0.3395, allocations: 172 kB / 0.5397 GB, free: 14.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.766e-05/0.3395, allocations: 87.02 kB / 0.5398 GB, free: 14.81 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002174/0.3398, allocations: 203.9 kB / 0.54 GB, free: 14.66 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/0.3398, allocations: 26.61 kB / 0.5401 GB, free: 14.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.3399, allocations: 159.3 kB / 0.5402 GB, free: 14.48 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.739e-05/0.3399, allocations: 45.2 kB / 0.5402 GB, free: 14.44 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.367e-05/0.34, allocations: 43.66 kB / 0.5403 GB, free: 14.4 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.3402, allocations: 331.7 kB / 0.5406 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.11e-05/0.3403, allocations: 39.3 kB / 0.5406 GB, free: 14.06 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.3404, allocations: 121.3 kB / 0.5408 GB, free: 13.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002592/0.3407, allocations: 188.8 kB / 0.5409 GB, free: 13.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3407, allocations: 5.094 kB / 0.5409 GB, free: 13.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003161/0.341, allocations: 211.3 kB / 0.5411 GB, free: 13.64 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.341, allocations: 6.906 kB / 0.5412 GB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.341, allocations: 3.062 kB / 0.5412 GB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.171e-05/0.341, allocations: 7.625 kB / 0.5412 GB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002449/0.3413, allocations: 54.66 kB / 0.5412 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001272/0.3426, allocations: 1.42 MB / 0.5426 GB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001324/0.3427, allocations: 22.38 kB / 0.5426 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.086e-05/0.3427, allocations: 8 kB / 0.5426 GB, free: 12.12 MB / 398.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.000165/0.3429, allocations: 151.3 kB / 0.5428 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.128e-05/0.3429, allocations: 15.72 kB / 0.5428 GB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002541/0.3432, allocations: 135.5 kB / 0.5429 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.3432, allocations: 5.172 kB / 0.5429 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-06/0.3432, allocations: 9 kB / 0.5429 GB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.758e-06/0.3432, allocations: 1.156 kB / 0.5429 GB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007287/0.3439, allocations: 499.3 kB / 0.5434 GB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.3439, allocations: 1.094 kB / 0.5434 GB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001703/0.3441, allocations: 31.58 kB / 0.5434 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.3441, allocations: 1.5 kB / 0.5434 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.3441, allocations: 2.875 kB / 0.5434 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001064/0.3452, allocations: 1.425 MB / 0.5448 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3452, allocations: 0.9062 kB / 0.5448 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003787/0.3455, allocations: 298.1 kB / 0.5451 GB, free: 9.688 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.712e-05/0.3456, allocations: 106.4 kB / 0.5452 GB, free: 9.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.448e-05/0.3456, allocations: 2.875 kB / 0.5452 GB, free: 9.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.36e-05/0.3457, allocations: 5.375 kB / 0.5452 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.648e-05/0.3458, allocations: 17.27 kB / 0.5452 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/0.3458, allocations: 6.719 kB / 0.5453 GB, free: 9.551 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000143/0.3459, allocations: 145.1 kB / 0.5454 GB, free: 9.445 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3459, allocations: 0 / 0.5454 GB, free: 9.445 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000348/0.3463, allocations: 46.78 kB / 0.5454 GB, free: 9.438 MB / 398.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 0.0001149/0.3464, allocations: 104.2 kB / 0.5455 GB, free: 9.344 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000344/0.3467, allocations: 129.9 kB / 0.5457 GB, free: 9.285 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3467, allocations: 96 / 0.5457 GB, free: 9.285 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001493/0.3469, allocations: 59.22 kB / 0.5457 GB, free: 9.258 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003999/0.3473, allocations: 34.14 kB / 0.5457 GB, free: 9.242 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.3483, allocations: 0.524 MB / 0.5463 GB, free: 8.844 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003833/0.3487, allocations: 0.7464 MB / 0.547 GB, free: 8.109 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.832e-05/0.3488, allocations: 28.75 kB / 0.547 GB, free: 8.098 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.422e-05/0.3489, allocations: 17.88 kB / 0.547 GB, free: 8.09 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3489, allocations: 0 / 0.547 GB, free: 8.09 MB / 398.1 MB Notification: Performance of Templates: time 0.00505/0.3539, allocations: 1.599 MB / 0.5486 GB, free: 7.293 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.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: 4.860926098190248]