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.001473/0.001473, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001407/0.001407, allocations: 216.2 kB / 24.53 MB, free: 4.066 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.493/1.493, allocations: 230.6 MB / 258.3 MB, free: 8.012 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.1985/0.1985, allocations: 38.52 MB / 353.2 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="cs",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.00203/0.00203, allocations: 63.89 kB / 493.3 MB, free: 4.891 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4093/0.4113, allocations: 62.48 MB / 0.5428 GB, free: 432 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004988/0.4163, allocations: 3.44 MB / 0.5461 GB, free: 13.72 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002109/0.4184, allocations: 1.285 MB / 0.5474 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002048/0.4186, allocations: 9.719 kB / 0.5474 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007246/0.4194, allocations: 171.1 kB / 0.5476 GB, free: 12.56 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005605/0.4199, allocations: 181.8 kB / 0.5477 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004755/0.4204, allocations: 130.4 kB / 0.5479 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004848/0.4209, allocations: 289.9 kB / 0.5481 GB, free: 12.15 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003207/0.4212, allocations: 114.8 kB / 0.5482 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003464/0.4215, allocations: 128.5 kB / 0.5484 GB, free: 12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002501/0.4218, allocations: 114.5 kB / 0.5485 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.907e-05/0.4218, allocations: 12.94 kB / 0.5485 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005041/0.4223, allocations: 239.5 kB / 0.5487 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.825e-05/0.4224, allocations: 66.77 kB / 0.5488 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001455/0.4226, allocations: 97.28 kB / 0.5489 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005997/0.4232, allocations: 282.3 kB / 0.5491 GB, free: 11.53 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.4232, allocations: 4 kB / 0.5491 GB, free: 11.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.4232, allocations: 3.938 kB / 0.5491 GB, free: 11.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.4232, allocations: 0 / 0.5491 GB, free: 11.52 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.0007133/0.4239, allocations: 436.7 kB / 0.5496 GB, free: 11.13 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.4239, allocations: 13.77 kB / 0.5496 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.378e-05/0.424, allocations: 8.547 kB / 0.5496 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.205e-05/0.424, allocations: 49.23 kB / 0.5496 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007395/0.4248, allocations: 81.45 kB / 0.5497 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003421/0.4251, allocations: 197.4 kB / 0.5499 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.4251, allocations: 11.42 kB / 0.5499 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.921e-05/0.4252, allocations: 31.11 kB / 0.5499 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000487/0.4257, allocations: 262 kB / 0.5502 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.4257, allocations: 1.406 kB / 0.5502 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.57e-05/0.4257, allocations: 5.438 kB / 0.5502 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.288e-05/0.4257, allocations: 15.81 kB / 0.5502 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004112/0.4262, allocations: 221 kB / 0.5504 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00186/0.428, allocations: 1.157 MB / 0.5515 GB, free: 9.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002272/0.4282, allocations: 126.3 kB / 0.5517 GB, free: 9.391 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.405e-05/0.4283, allocations: 43.83 kB / 0.5517 GB, free: 9.359 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.795e-05/0.4283, allocations: 6.375 kB / 0.5517 GB, free: 9.355 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.749e-05/0.4284, allocations: 39.3 kB / 0.5518 GB, free: 9.309 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 2.024e-06/0.4284, allocations: 0 / 0.5518 GB, free: 9.309 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003682/0.4287, allocations: 167.8 kB / 0.5519 GB, free: 9.211 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.955e-05/0.4288, allocations: 82.19 kB / 0.552 GB, free: 9.113 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002162/0.429, allocations: 209 kB / 0.5522 GB, free: 8.957 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.093e-05/0.429, allocations: 27.05 kB / 0.5522 GB, free: 8.926 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.4292, allocations: 162.7 kB / 0.5524 GB, free: 8.773 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.362e-05/0.4292, allocations: 49.89 kB / 0.5524 GB, free: 8.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.081e-05/0.4293, allocations: 43.2 kB / 0.5525 GB, free: 8.695 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.4295, allocations: 323.5 kB / 0.5528 GB, free: 8.375 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.012e-05/0.4295, allocations: 47.5 kB / 0.5528 GB, free: 8.352 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.4297, allocations: 121.3 kB / 0.5529 GB, free: 8.227 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00024/0.4299, allocations: 177.5 kB / 0.5531 GB, free: 8.074 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.4299, allocations: 1.219 kB / 0.5531 GB, free: 8.074 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003196/0.4302, allocations: 207 kB / 0.5533 GB, free: 7.957 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.4303, allocations: 6.625 kB / 0.5533 GB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.4303, allocations: 6.156 kB / 0.5533 GB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.4303, allocations: 4.594 kB / 0.5533 GB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002577/0.4305, allocations: 53.44 kB / 0.5534 GB, free: 7.938 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001149/0.4317, allocations: 1.318 MB / 0.5547 GB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001716/0.4319, allocations: 18.3 kB / 0.5547 GB, free: 6.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.963e-05/0.4319, allocations: 7.562 kB / 0.5547 GB, free: 6.57 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.0001566/0.432, allocations: 148.6 kB / 0.5548 GB, free: 6.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.067e-05/0.4321, allocations: 19.33 kB / 0.5548 GB, free: 6.418 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002659/0.4324, allocations: 146.7 kB / 0.555 GB, free: 6.312 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.4324, allocations: 2.438 kB / 0.555 GB, free: 6.312 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.4324, allocations: 1.25 kB / 0.555 GB, free: 6.312 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.4324, allocations: 0 / 0.555 GB, free: 6.312 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007275/0.4331, allocations: 479.7 kB / 0.5554 GB, free: 5.895 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.4331, allocations: 0 / 0.5554 GB, free: 5.895 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001776/0.4333, allocations: 39.3 kB / 0.5555 GB, free: 5.879 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.4333, allocations: 2.344 kB / 0.5555 GB, free: 5.879 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.4333, allocations: 6.531 kB / 0.5555 GB, free: 5.875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001021/0.4343, allocations: 1.318 MB / 0.5568 GB, free: 4.516 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.4343, allocations: 1.25 kB / 0.5568 GB, free: 4.516 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003703/0.4347, allocations: 310.5 kB / 0.5571 GB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.74e-05/0.4347, allocations: 17.84 kB / 0.5571 GB, free: 4.262 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.759e-05/0.4348, allocations: 10.41 kB / 0.5571 GB, free: 4.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.842e-05/0.4349, allocations: 1.062 kB / 0.5571 GB, free: 4.254 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.055e-05/0.4349, allocations: 16.47 kB / 0.5571 GB, free: 4.242 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.329e-05/0.4349, allocations: 3.719 kB / 0.5571 GB, free: 4.242 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001447/0.4351, allocations: 149.3 kB / 0.5573 GB, free: 4.133 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4351, allocations: 0 / 0.5573 GB, free: 4.133 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000355/0.4354, allocations: 50.64 kB / 0.5573 GB, free: 4.121 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.0006999/0.4361, allocations: 0.8372 MB / 0.5581 GB, free: 3.352 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003589/0.4365, allocations: 120.8 kB / 0.5582 GB, free: 3.301 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.4365, allocations: 1.125 kB / 0.5582 GB, free: 3.301 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001581/0.4366, allocations: 55.88 kB / 0.5583 GB, free: 3.277 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004096/0.437, allocations: 42.97 kB / 0.5583 GB, free: 3.254 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003263/0.4403, allocations: 2.366 MB / 0.5606 GB, free: 1.258 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000577/0.4409, allocations: 0.7464 MB / 0.5614 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000133/0.441, allocations: 25.28 kB / 0.5614 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.4411, allocations: 61.12 kB / 0.5615 GB, free: 476 kB / 398.1 MB Notification: Performance of SimCode: time 1.313e-06/0.4411, allocations: 0 / 0.5615 GB, free: 476 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02852/0.4697, allocations: 4.001 MB / 0.5654 GB, free: 12.6 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.98/13.45, allocations: 13.61 kB / 0.5654 GB, free: 12.59 MB / 414.1 MB " [Timeout remaining time 646] (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: 16.431870136992075]