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.001311/0.001311, 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.001503/0.001503, allocations: 216.9 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.45/1.45, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.1951/0.1951, allocations: 38.52 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.002036/0.002036, allocations: 68.17 kB / 492.5 MB, free: 4.902 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3073, 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.005473/0.3128, allocations: 3.436 MB / 0.5454 GB, free: 13.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002119/0.3149, allocations: 1.281 MB / 0.5466 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000226/0.3151, allocations: 8.594 kB / 0.5466 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007241/0.3158, allocations: 175.3 kB / 0.5468 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004939/0.3163, allocations: 177.8 kB / 0.547 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003689/0.3167, allocations: 131 kB / 0.5471 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004049/0.3171, allocations: 289.9 kB / 0.5474 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002641/0.3174, allocations: 122.3 kB / 0.5475 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002728/0.3176, allocations: 129 kB / 0.5476 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002299/0.3179, allocations: 114.6 kB / 0.5477 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.548e-05/0.3179, allocations: 13.78 kB / 0.5477 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004271/0.3183, allocations: 238.7 kB / 0.5479 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.66e-05/0.3184, allocations: 66.22 kB / 0.548 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001192/0.3185, allocations: 93.47 kB / 0.5481 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004585/0.319, allocations: 282.3 kB / 0.5484 GB, free: 11.55 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.319, allocations: 0 / 0.5484 GB, free: 11.55 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.319, allocations: 0 / 0.5484 GB, free: 11.55 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.319, allocations: 3.938 kB / 0.5484 GB, free: 11.55 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.0006593/0.3197, allocations: 443.5 kB / 0.5488 GB, free: 11.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.3197, allocations: 17.77 kB / 0.5488 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.22e-05/0.3198, allocations: 49.58 kB / 0.5489 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006898/0.3204, allocations: 76.53 kB / 0.5489 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003356/0.3208, allocations: 209.8 kB / 0.5491 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.825e-05/0.3208, allocations: 11.3 kB / 0.5491 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.114e-05/0.3208, allocations: 15.38 kB / 0.5492 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004273/0.3213, allocations: 273.7 kB / 0.5494 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.3213, allocations: 1.406 kB / 0.5494 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.159e-05/0.3213, allocations: 5.281 kB / 0.5494 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.864e-05/0.3213, allocations: 18.84 kB / 0.5494 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003549/0.3217, allocations: 221.7 kB / 0.5497 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001639/0.3233, allocations: 1.153 MB / 0.5508 GB, free: 9.504 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000222/0.3235, allocations: 126.5 kB / 0.5509 GB, free: 9.414 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.578e-05/0.3236, allocations: 48.8 kB / 0.5509 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.505e-05/0.3236, allocations: 1.125 kB / 0.5509 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.3237, allocations: 39.64 kB / 0.551 GB, free: 9.332 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.633e-06/0.3237, allocations: 1.125 kB / 0.551 GB, free: 9.332 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003443/0.324, allocations: 166.9 kB / 0.5511 GB, free: 9.234 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/0.3241, allocations: 82.38 kB / 0.5512 GB, free: 9.137 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001977/0.3243, allocations: 205.1 kB / 0.5514 GB, free: 8.984 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.428e-05/0.3243, allocations: 30.98 kB / 0.5514 GB, free: 8.949 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.3244, allocations: 154.2 kB / 0.5516 GB, free: 8.805 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.352e-05/0.3245, allocations: 53.73 kB / 0.5516 GB, free: 8.758 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.482e-05/0.3245, allocations: 39.92 kB / 0.5517 GB, free: 8.727 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.3247, allocations: 327.2 kB / 0.552 GB, free: 8.402 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.145e-05/0.3247, allocations: 43.44 kB / 0.552 GB, free: 8.383 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001387/0.3249, allocations: 125.5 kB / 0.5522 GB, free: 8.254 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002263/0.3251, allocations: 173.6 kB / 0.5523 GB, free: 8.105 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3251, allocations: 0 / 0.5523 GB, free: 8.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003071/0.3254, allocations: 216.2 kB / 0.5525 GB, free: 7.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.3254, allocations: 8.969 kB / 0.5525 GB, free: 7.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.3254, allocations: 2.969 kB / 0.5525 GB, free: 7.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.3255, allocations: 8.219 kB / 0.5525 GB, free: 7.977 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002381/0.3257, allocations: 53.64 kB / 0.5526 GB, free: 7.961 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001036/0.3267, allocations: 1.317 MB / 0.5539 GB, free: 6.605 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001219/0.3268, allocations: 23.09 kB / 0.5539 GB, free: 6.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.734e-05/0.3269, allocations: 7.688 kB / 0.5539 GB, free: 6.59 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.0001369/0.327, allocations: 151.3 kB / 0.5541 GB, free: 6.445 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.267e-05/0.327, allocations: 16.5 kB / 0.5541 GB, free: 6.438 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002314/0.3273, allocations: 141.8 kB / 0.5542 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.3273, allocations: 2.25 kB / 0.5542 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.3273, allocations: 1.094 kB / 0.5542 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3273, allocations: 0 / 0.5542 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006472/0.3279, allocations: 474.9 kB / 0.5547 GB, free: 5.922 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.3279, allocations: 1.188 kB / 0.5547 GB, free: 5.922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001761/0.3281, allocations: 39.25 kB / 0.5547 GB, free: 5.906 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.3281, allocations: 2.312 kB / 0.5547 GB, free: 5.906 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.3281, allocations: 2.031 kB / 0.5547 GB, free: 5.906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009124/0.329, allocations: 1.318 MB / 0.556 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.329, allocations: 1.406 kB / 0.556 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003375/0.3294, allocations: 309.5 kB / 0.5563 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.701e-05/0.3294, allocations: 22.16 kB / 0.5563 GB, free: 4.289 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.418e-05/0.3294, allocations: 2.281 kB / 0.5563 GB, free: 4.289 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.3295, allocations: 10.36 kB / 0.5563 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.515e-05/0.3296, allocations: 11.28 kB / 0.5563 GB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.055e-05/0.3296, allocations: 4.531 kB / 0.5563 GB, free: 4.273 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001315/0.3297, allocations: 148.3 kB / 0.5565 GB, free: 4.164 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3297, allocations: 0 / 0.5565 GB, free: 4.164 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003299/0.33, allocations: 47.86 kB / 0.5565 GB, free: 4.156 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.0006243/0.3307, allocations: 0.8378 MB / 0.5573 GB, free: 3.383 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003021/0.331, allocations: 126 kB / 0.5575 GB, free: 3.328 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.331, allocations: 0 / 0.5575 GB, free: 3.328 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001416/0.3311, allocations: 52 kB / 0.5575 GB, free: 3.309 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003768/0.3315, allocations: 38.56 kB / 0.5576 GB, free: 3.285 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002673/0.3342, allocations: 2.373 MB / 0.5599 GB, free: 1.281 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.3345, allocations: 0.7418 MB / 0.5606 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.738e-05/0.3346, allocations: 29.95 kB / 0.5606 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.967e-05/0.3347, allocations: 60.16 kB / 0.5607 GB, free: 500 kB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3347, allocations: 1.031 kB / 0.5607 GB, free: 500 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03056/0.3653, allocations: 3.976 MB / 0.5646 GB, free: 12.65 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/12.63, allocations: 0 / 0.5646 GB, free: 12.65 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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.csv failed! Error: Could not read variable generator.p[1] in file PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.csv. Warning: Get data of variable generator.p[1] from file PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.csv failed! Error: Could not read variable generator.p[2] in file PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.csv. Warning: Get data of variable generator.p[2] from file PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.csv failed! Error: Could not read variable generator.phi in file PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.csv. Warning: Get data of variable generator.phi from file PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.482249381995643]