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.0006775/0.0006775, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001029/0.001029, allocations: 173.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.914/0.914, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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.239/0.239, allocations: 29.41 MB / 290.1 MB, free: 2.434 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.024e-05/2.174e-05, allocations: 2.281 kB / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004179/0.0042, allocations: 3.31 MB / 433.5 MB, free: 10.28 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.005446, allocations: 1.173 MB / 434.7 MB, free: 9.102 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.005568, allocations: 11.88 kB / 434.7 MB, free: 9.09 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005148/0.006083, allocations: 167.2 kB / 434.9 MB, free: 8.926 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002957/0.006379, allocations: 171 kB / 435 MB, free: 8.758 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002156/0.006594, allocations: 139.4 kB / 435.2 MB, free: 8.621 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002795/0.006874, allocations: 294.9 kB / 435.4 MB, free: 8.332 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002376/0.007111, allocations: 114.2 kB / 435.6 MB, free: 8.223 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002569/0.007368, allocations: 175.4 kB / 435.7 MB, free: 8.051 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000146/0.007514, allocations: 95.73 kB / 435.8 MB, free: 7.957 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.113e-05/0.007535, allocations: 19.94 kB / 435.8 MB, free: 7.938 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002743/0.00781, allocations: 199.3 kB / 436 MB, free: 7.742 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 6.717e-05/0.007877, allocations: 63.75 kB / 436.1 MB, free: 7.68 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 6.892e-05/0.007946, allocations: 63.84 kB / 436.2 MB, free: 7.617 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002994/0.008245, allocations: 295.1 kB / 436.5 MB, free: 7.328 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.008248, allocations: 0 / 436.5 MB, free: 7.328 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.008249, allocations: 0 / 436.5 MB, free: 7.328 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.008254, allocations: 0 / 436.5 MB, free: 7.328 MB / 410.7 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.0005602/0.008814, allocations: 445.2 kB / 436.9 MB, free: 6.863 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.008851, allocations: 11.98 kB / 436.9 MB, free: 6.852 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.181e-05/0.008892, allocations: 50.73 kB / 436.9 MB, free: 6.793 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003926/0.009285, allocations: 76.72 kB / 437 MB, free: 6.719 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002398/0.009525, allocations: 201.4 kB / 437.2 MB, free: 6.496 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.009539, allocations: 16.64 kB / 437.2 MB, free: 6.48 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.526e-05/0.009574, allocations: 24.31 kB / 437.3 MB, free: 6.457 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003038/0.009878, allocations: 260.5 kB / 437.5 MB, free: 6.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.00989, allocations: 192 / 437.5 MB, free: 6.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.685e-05/0.009907, allocations: 11.94 kB / 437.5 MB, free: 6.168 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.356e-05/0.00993, allocations: 12.33 kB / 437.5 MB, free: 6.156 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000239/0.01017, allocations: 220.4 kB / 437.8 MB, free: 5.941 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001265/0.01143, allocations: 1.111 MB / 438.9 MB, free: 4.742 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001791/0.01161, allocations: 121.3 kB / 439 MB, free: 4.605 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.005e-05/0.01166, allocations: 49.7 kB / 439 MB, free: 4.551 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.01168, allocations: 0 / 439 MB, free: 4.551 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.0117, allocations: 38.56 kB / 439.1 MB, free: 4.504 MB / 410.7 MB Notification: Performance of pre-optimization done (n=12): time 2.124e-06/0.0117, allocations: 4 kB / 439.1 MB, free: 4.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002498/0.01195, allocations: 161.4 kB / 439.2 MB, free: 4.336 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.754e-05/0.01199, allocations: 81.11 kB / 439.3 MB, free: 4.238 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.01212, allocations: 214.9 kB / 439.5 MB, free: 4.016 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.918e-06/0.01213, allocations: 29.7 kB / 439.5 MB, free: 3.98 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.956e-05/0.0122, allocations: 156.2 kB / 439.7 MB, free: 3.824 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.646e-05/0.01223, allocations: 47.58 kB / 439.7 MB, free: 3.777 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.269e-05/0.01227, allocations: 37.7 kB / 439.8 MB, free: 3.734 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.881e-05/0.01235, allocations: 334.8 kB / 440.1 MB, free: 3.398 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.938e-05/0.0124, allocations: 39.98 kB / 440.1 MB, free: 3.359 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.482e-05/0.01248, allocations: 133.3 kB / 440.3 MB, free: 3.195 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001437/0.01263, allocations: 178.6 kB / 440.5 MB, free: 2.984 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.01263, allocations: 4 kB / 440.5 MB, free: 2.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001977/0.01283, allocations: 205.2 kB / 440.7 MB, free: 2.773 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.01284, allocations: 6.969 kB / 440.7 MB, free: 2.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.01284, allocations: 7.938 kB / 440.7 MB, free: 2.762 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.01286, allocations: 4 kB / 440.7 MB, free: 2.758 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001498/0.01301, allocations: 60.25 kB / 440.7 MB, free: 2.699 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009395/0.01395, allocations: 1.32 MB / 442.1 MB, free: 1.266 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.925e-05/0.01402, allocations: 15.89 kB / 442.1 MB, free: 1.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.328e-05/0.01403, allocations: 8 kB / 442.1 MB, free: 1.242 MB / 410.7 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.0001031/0.01413, allocations: 145.8 kB / 442.2 MB, free: 1.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.496e-05/0.01416, allocations: 27.73 kB / 442.2 MB, free: 1.062 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001546/0.01431, allocations: 139.2 kB / 442.4 MB, free: 0.918 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.01431, allocations: 4 kB / 442.4 MB, free: 0.9141 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.01432, allocations: 0 / 442.4 MB, free: 0.9141 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.01432, allocations: 7.984 kB / 442.4 MB, free: 0.9062 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004292/0.01475, allocations: 455.1 kB / 442.8 MB, free: 416 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.01475, allocations: 0 / 442.8 MB, free: 416 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.947e-05/0.01484, allocations: 31.92 kB / 442.9 MB, free: 384 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.868e-06/0.01484, allocations: 7.969 kB / 442.9 MB, free: 376 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.01486, allocations: 4 kB / 442.9 MB, free: 372 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1723/0.1871, allocations: 1.301 MB / 444.2 MB, free: 52.85 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.1871, allocations: 4.688 kB / 444.2 MB, free: 52.85 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002668/0.1874, allocations: 306.5 kB / 444.5 MB, free: 52.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.582e-05/0.1874, allocations: 19.34 kB / 444.5 MB, free: 52.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.329e-05/0.1874, allocations: 4 kB / 444.5 MB, free: 52.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.304e-05/0.1875, allocations: 4.625 kB / 444.5 MB, free: 52.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.512e-05/0.1875, allocations: 20.39 kB / 444.5 MB, free: 52.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.1875, allocations: 3.812 kB / 444.5 MB, free: 52.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.634e-05/0.1876, allocations: 149.5 kB / 444.7 MB, free: 52.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1876, allocations: 0 / 444.7 MB, free: 52.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002596/0.1879, allocations: 52.67 kB / 444.7 MB, free: 52.62 MB / 410.7 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.0003143/0.1882, allocations: 0.8296 MB / 445.6 MB, free: 51.95 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002273/0.1884, allocations: 132.6 kB / 445.7 MB, free: 51.95 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.1884, allocations: 0 / 445.7 MB, free: 51.95 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.458e-05/0.1885, allocations: 58.5 kB / 445.8 MB, free: 51.95 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000299/0.1888, allocations: 40.08 kB / 445.8 MB, free: 51.94 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001501/0.1903, allocations: 2.289 MB / 448.1 MB, free: 50.37 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.729e-05/0.1904, allocations: 132.8 kB / 448.2 MB, free: 50.29 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 6.537e-05/0.1904, allocations: 32.34 kB / 448.2 MB, free: 50.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.553e-05/0.1905, allocations: 57.5 kB / 448.3 MB, free: 50.24 MB / 410.7 MB Notification: Performance of SimCode: time 1.262e-06/0.1905, allocations: 0 / 448.3 MB, free: 50.24 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01841/0.2089, allocations: 4.477 MB / 452.8 MB, free: 49.14 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.795/8.004, allocations: 11.66 kB / 452.8 MB, free: 49.13 MB / 410.7 MB " [Timeout remaining time 652] (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/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] "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: 10.07577986922115]