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.002008/0.002008, allocations: 111.1 kB / 20.44 MB, free: 1.352 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.002344/0.002344, allocations: 213 kB / 23.73 MB, free: 4.531 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.456/1.456, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.1815/0.1815, allocations: 38.55 MB / 352.5 MB, free: 12.42 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.002073/0.002073, allocations: 59.91 kB / 492.5 MB, free: 4.727 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3266/0.3286, allocations: 62.47 MB / 0.5419 GB, free: 284 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005298/0.3339, allocations: 3.321 MB / 0.5452 GB, free: 13.71 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001939/0.3359, allocations: 1.172 MB / 0.5463 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.336, allocations: 9.438 kB / 0.5463 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006145/0.3366, allocations: 151.1 kB / 0.5465 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004153/0.337, allocations: 180.2 kB / 0.5466 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003165/0.3373, allocations: 134.9 kB / 0.5468 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003852/0.3377, allocations: 288.9 kB / 0.5471 GB, free: 12.28 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003069/0.338, allocations: 114.1 kB / 0.5472 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002627/0.3383, allocations: 133.1 kB / 0.5473 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002107/0.3385, allocations: 110.7 kB / 0.5474 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.546e-05/0.3385, allocations: 12.75 kB / 0.5474 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003511/0.3389, allocations: 193 kB / 0.5476 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.981e-05/0.339, allocations: 61.88 kB / 0.5476 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.3391, allocations: 77.84 kB / 0.5477 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004616/0.3395, allocations: 291.2 kB / 0.548 GB, free: 11.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3395, allocations: 1.062 kB / 0.548 GB, free: 11.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3395, allocations: 0 / 0.548 GB, free: 11.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.3395, allocations: 3.938 kB / 0.548 GB, free: 11.7 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.000706/0.3402, allocations: 429.9 kB / 0.5484 GB, free: 11.31 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.3403, allocations: 13.61 kB / 0.5484 GB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.266e-05/0.3404, allocations: 56 kB / 0.5485 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006638/0.341, allocations: 77.28 kB / 0.5486 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000413/0.3414, allocations: 202.5 kB / 0.5487 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.3414, allocations: 15.09 kB / 0.5488 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.677e-05/0.3415, allocations: 22.7 kB / 0.5488 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004357/0.3419, allocations: 264.6 kB / 0.549 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.342, allocations: 0.9062 kB / 0.549 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.342, allocations: 6 kB / 0.549 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.343e-05/0.342, allocations: 18.02 kB / 0.5491 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003909/0.3424, allocations: 224.8 kB / 0.5493 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001679/0.3441, allocations: 1.11 MB / 0.5504 GB, free: 9.703 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002384/0.3443, allocations: 131.6 kB / 0.5505 GB, free: 9.609 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.364e-05/0.3444, allocations: 44.73 kB / 0.5505 GB, free: 9.578 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.429e-05/0.3444, allocations: 1.438 kB / 0.5505 GB, free: 9.578 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.3444, allocations: 36.22 kB / 0.5506 GB, free: 9.535 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 4.939e-06/0.3444, allocations: 5.5 kB / 0.5506 GB, free: 9.531 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003575/0.3448, allocations: 167 kB / 0.5507 GB, free: 9.434 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.3449, allocations: 78.42 kB / 0.5508 GB, free: 9.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002246/0.3451, allocations: 214.1 kB / 0.551 GB, free: 9.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.3451, allocations: 25.7 kB / 0.551 GB, free: 9.148 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.3452, allocations: 163.7 kB / 0.5512 GB, free: 8.996 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.896e-05/0.3453, allocations: 41.33 kB / 0.5512 GB, free: 8.961 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.529e-05/0.3453, allocations: 39.3 kB / 0.5513 GB, free: 8.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.3455, allocations: 331.9 kB / 0.5516 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.241e-05/0.3456, allocations: 48.11 kB / 0.5516 GB, free: 8.578 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001435/0.3457, allocations: 118.7 kB / 0.5517 GB, free: 8.461 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002472/0.346, allocations: 187.2 kB / 0.5519 GB, free: 8.301 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.346, allocations: 5.344 kB / 0.5519 GB, free: 8.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003281/0.3463, allocations: 206.6 kB / 0.5521 GB, free: 8.18 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.3463, allocations: 6.594 kB / 0.5521 GB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.3463, allocations: 3.781 kB / 0.5521 GB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.3463, allocations: 7.531 kB / 0.5521 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002431/0.3466, allocations: 54.06 kB / 0.5522 GB, free: 8.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001113/0.3477, allocations: 1.316 MB / 0.5535 GB, free: 6.809 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.3478, allocations: 18.44 kB / 0.5535 GB, free: 6.797 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.569e-05/0.3478, allocations: 15.5 kB / 0.5535 GB, free: 6.789 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.0001507/0.348, allocations: 147.9 kB / 0.5536 GB, free: 6.648 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.106e-05/0.348, allocations: 16.47 kB / 0.5537 GB, free: 6.641 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000254/0.3483, allocations: 142.1 kB / 0.5538 GB, free: 6.539 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.3483, allocations: 6.188 kB / 0.5538 GB, free: 6.535 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.3483, allocations: 1.125 kB / 0.5538 GB, free: 6.535 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.3483, allocations: 5.172 kB / 0.5538 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006953/0.349, allocations: 455.4 kB / 0.5542 GB, free: 6.137 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.349, allocations: 96 / 0.5542 GB, free: 6.137 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001698/0.3492, allocations: 32.02 kB / 0.5543 GB, free: 6.129 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.3492, allocations: 1.156 kB / 0.5543 GB, free: 6.129 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.799e-05/0.3492, allocations: 10.55 kB / 0.5543 GB, free: 6.121 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001047/0.3502, allocations: 1.322 MB / 0.5556 GB, free: 4.762 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3502, allocations: 0 / 0.5556 GB, free: 4.762 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003625/0.3506, allocations: 303.8 kB / 0.5559 GB, free: 4.527 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.237e-05/0.3506, allocations: 22.77 kB / 0.5559 GB, free: 4.512 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.695e-05/0.3507, allocations: 7.156 kB / 0.5559 GB, free: 4.508 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.647e-05/0.3508, allocations: 0 / 0.5559 GB, free: 4.508 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.48e-05/0.3508, allocations: 9.516 kB / 0.5559 GB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.428e-05/0.3508, allocations: 7.656 kB / 0.5559 GB, free: 4.5 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001448/0.351, allocations: 152.4 kB / 0.5561 GB, free: 4.387 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.351, allocations: 0 / 0.5561 GB, free: 4.387 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000348/0.3513, allocations: 47.92 kB / 0.5561 GB, free: 4.379 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.0007267/0.352, allocations: 0.8513 MB / 0.5569 GB, free: 3.598 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003309/0.3524, allocations: 118.4 kB / 0.557 GB, free: 3.551 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3524, allocations: 192 / 0.557 GB, free: 3.551 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001514/0.3525, allocations: 58.44 kB / 0.5571 GB, free: 3.523 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000408/0.3529, allocations: 29.67 kB / 0.5571 GB, free: 3.512 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00296/0.3559, allocations: 2.37 MB / 0.5594 GB, free: 1.477 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001556/0.356, allocations: 128.9 kB / 0.5596 GB, free: 1.332 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001136/0.3562, allocations: 37.61 kB / 0.5596 GB, free: 1.293 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.3563, allocations: 55.42 kB / 0.5597 GB, free: 1.238 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3563, allocations: 0 / 0.5597 GB, free: 1.238 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03371/0.39, allocations: 4.33 MB / 0.5639 GB, free: 13.04 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.81/13.2, allocations: 3.562 kB / 0.5639 GB, free: 13.04 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: 16.11997223412618]