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.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.001406/0.001406, allocations: 113.1 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.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.001471/0.001471, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.416/1.416, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.1813/0.1813, allocations: 38.53 MB / 352.5 MB, free: 12.54 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: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) [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.002169/0.002169, allocations: 71.88 kB / 492.5 MB, free: 4.887 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3174, allocations: 62.48 MB / 0.542 GB, free: 456 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.00519/0.3226, allocations: 3.452 MB / 0.5454 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001927/0.3245, allocations: 1.276 MB / 0.5466 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001504/0.3247, allocations: 14.53 kB / 0.5466 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006584/0.3254, allocations: 173.4 kB / 0.5468 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004566/0.3258, allocations: 171.8 kB / 0.547 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003161/0.3261, allocations: 130.5 kB / 0.5471 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003988/0.3265, allocations: 285.3 kB / 0.5474 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002935/0.3268, allocations: 123 kB / 0.5475 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000276/0.3271, allocations: 132.1 kB / 0.5476 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001957/0.3273, allocations: 118.6 kB / 0.5477 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.661e-05/0.3273, allocations: 13.5 kB / 0.5477 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004184/0.3277, allocations: 231.7 kB / 0.5479 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.381e-05/0.3278, allocations: 66.02 kB / 0.548 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.3279, allocations: 93.3 kB / 0.5481 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004862/0.3284, allocations: 281.8 kB / 0.5484 GB, free: 11.55 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3284, allocations: 0.9688 kB / 0.5484 GB, free: 11.55 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3284, allocations: 0 / 0.5484 GB, free: 11.55 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.3284, allocations: 7.938 kB / 0.5484 GB, free: 11.54 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007142/0.3292, allocations: 440.5 kB / 0.5488 GB, free: 11.15 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.3292, allocations: 13.89 kB / 0.5488 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.866e-05/0.3293, allocations: 49.7 kB / 0.5489 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007126/0.33, allocations: 76.31 kB / 0.5489 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003651/0.3303, allocations: 209.7 kB / 0.5491 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.3304, allocations: 15.48 kB / 0.5491 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.844e-05/0.3304, allocations: 14.59 kB / 0.5492 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004621/0.3309, allocations: 266.3 kB / 0.5494 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.3309, allocations: 5.062 kB / 0.5494 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.46e-05/0.3309, allocations: 6.156 kB / 0.5494 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.565e-05/0.3309, allocations: 18.62 kB / 0.5494 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003971/0.3313, allocations: 217.6 kB / 0.5496 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001639/0.333, allocations: 1.149 MB / 0.5508 GB, free: 9.508 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000245/0.3332, allocations: 126.9 kB / 0.5509 GB, free: 9.418 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.758e-05/0.3333, allocations: 47.7 kB / 0.5509 GB, free: 9.383 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.137e-05/0.3333, allocations: 9.25 kB / 0.5509 GB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.572e-05/0.3334, allocations: 37.28 kB / 0.551 GB, free: 9.332 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.442e-06/0.3334, allocations: 0 / 0.551 GB, free: 9.332 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003669/0.3337, allocations: 170.4 kB / 0.5511 GB, free: 9.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.242e-05/0.3338, allocations: 83.45 kB / 0.5512 GB, free: 9.133 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002249/0.334, allocations: 208.3 kB / 0.5514 GB, free: 8.977 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.367e-05/0.334, allocations: 30.7 kB / 0.5514 GB, free: 8.941 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.3342, allocations: 154.3 kB / 0.5516 GB, free: 8.797 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.592e-05/0.3342, allocations: 54.16 kB / 0.5516 GB, free: 8.75 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.124e-05/0.3343, allocations: 40.17 kB / 0.5517 GB, free: 8.719 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.3344, allocations: 326.5 kB / 0.552 GB, free: 8.395 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.981e-05/0.3345, allocations: 43.22 kB / 0.552 GB, free: 8.375 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.3347, allocations: 121.9 kB / 0.5522 GB, free: 8.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002374/0.3349, allocations: 181.6 kB / 0.5523 GB, free: 8.094 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3349, allocations: 5.344 kB / 0.5523 GB, free: 8.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003148/0.3352, allocations: 206.7 kB / 0.5525 GB, free: 7.973 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.3352, allocations: 6.375 kB / 0.5525 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.3352, allocations: 3.125 kB / 0.5525 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.219e-05/0.3353, allocations: 11.42 kB / 0.5526 GB, free: 7.965 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00024/0.3355, allocations: 50.17 kB / 0.5526 GB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00102/0.3365, allocations: 1.317 MB / 0.5539 GB, free: 6.598 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.3366, allocations: 18.39 kB / 0.5539 GB, free: 6.586 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.723e-05/0.3367, allocations: 8 kB / 0.5539 GB, free: 6.586 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.0001417/0.3368, allocations: 147.5 kB / 0.5541 GB, free: 6.445 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.687e-05/0.3368, allocations: 20.7 kB / 0.5541 GB, free: 6.434 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002577/0.3371, allocations: 138.5 kB / 0.5542 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.636e-06/0.3371, allocations: 2.375 kB / 0.5542 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-06/0.3371, allocations: 64 / 0.5542 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.3371, allocations: 9.297 kB / 0.5542 GB, free: 6.328 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006556/0.3378, allocations: 462.5 kB / 0.5547 GB, free: 5.926 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.3378, allocations: 5.156 kB / 0.5547 GB, free: 5.922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001769/0.338, allocations: 39.69 kB / 0.5547 GB, free: 5.906 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.338, allocations: 1.031 kB / 0.5547 GB, free: 5.906 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.338, allocations: 2.125 kB / 0.5547 GB, free: 5.906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009886/0.339, allocations: 1.327 MB / 0.556 GB, free: 4.539 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.339, allocations: 5.219 kB / 0.556 GB, free: 4.535 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003428/0.3393, allocations: 301.4 kB / 0.5563 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.547e-05/0.3393, allocations: 22.69 kB / 0.5563 GB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.638e-05/0.3394, allocations: 6.797 kB / 0.5563 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.647e-05/0.3395, allocations: 13.12 kB / 0.5563 GB, free: 4.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.803e-05/0.3395, allocations: 12.11 kB / 0.5563 GB, free: 4.262 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.3395, allocations: 3.906 kB / 0.5563 GB, free: 4.262 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001321/0.3396, allocations: 144.4 kB / 0.5565 GB, free: 4.156 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3396, allocations: 0 / 0.5565 GB, free: 4.156 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003357/0.34, allocations: 47.52 kB / 0.5565 GB, free: 4.148 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.0006425/0.3406, allocations: 0.8371 MB / 0.5573 GB, free: 3.375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003597/0.341, allocations: 126.1 kB / 0.5575 GB, free: 3.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.341, allocations: 5.219 kB / 0.5575 GB, free: 3.316 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002012/0.3412, allocations: 54.55 kB / 0.5575 GB, free: 3.293 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003958/0.3416, allocations: 36.08 kB / 0.5576 GB, free: 3.277 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002858/0.3444, allocations: 2.361 MB / 0.5599 GB, free: 1.281 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004001/0.3448, allocations: 0.7425 MB / 0.5606 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.538e-05/0.3449, allocations: 29.39 kB / 0.5606 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.345, allocations: 64.53 kB / 0.5607 GB, free: 496 kB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.345, allocations: 1.188 kB / 0.5607 GB, free: 496 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0325/0.3775, allocations: 3.979 MB / 0.5646 GB, free: 12.63 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.49/12.87, allocations: 7.812 kB / 0.5646 GB, free: 12.63 MB / 414.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","/var/lib/jenkins1/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: 15.582005334086716]