Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.001308/0.001308, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.002172/0.002172, allocations: 212 kB / 23.74 MB, free: 4.656 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.53/1.53, allocations: 230.6 MB / 257.5 MB, free: 7.992 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.1915/0.1915, allocations: 38.52 MB / 352.5 MB, free: 12.52 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.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",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.002058/0.002058, allocations: 59.91 kB / 492.5 MB, free: 4.875 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3348/0.3369, allocations: 62.48 MB / 0.542 GB, free: 428 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.005227/0.3421, allocations: 3.596 MB / 0.5455 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002479/0.3446, allocations: 1.56 MB / 0.547 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001499/0.3447, allocations: 9.281 kB / 0.547 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008912/0.3456, allocations: 266.9 kB / 0.5473 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006866/0.3463, allocations: 274.5 kB / 0.5476 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003667/0.3467, allocations: 126.5 kB / 0.5477 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004483/0.3471, allocations: 347.2 kB / 0.548 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002794/0.3474, allocations: 118.6 kB / 0.5481 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003209/0.3477, allocations: 164 kB / 0.5483 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003065/0.348, allocations: 170.5 kB / 0.5484 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.785e-05/0.3481, allocations: 14 kB / 0.5485 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006006/0.3487, allocations: 342.9 kB / 0.5488 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001235/0.3488, allocations: 105.1 kB / 0.5489 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001297/0.3489, allocations: 102.9 kB / 0.549 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005342/0.3495, allocations: 365.9 kB / 0.5493 GB, free: 10.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3495, allocations: 0 / 0.5493 GB, free: 10.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3495, allocations: 1.094 kB / 0.5493 GB, free: 10.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.3495, allocations: 3.938 kB / 0.5493 GB, free: 10.84 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007137/0.3502, allocations: 452.2 kB / 0.5498 GB, free: 10.44 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.3502, allocations: 12.53 kB / 0.5498 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.229e-05/0.3503, allocations: 54.92 kB / 0.5498 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000881/0.3512, allocations: 93.06 kB / 0.5499 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003597/0.3515, allocations: 217.3 kB / 0.5501 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.109e-05/0.3515, allocations: 15.81 kB / 0.5501 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.054e-05/0.3516, allocations: 15.31 kB / 0.5502 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005338/0.3521, allocations: 329.9 kB / 0.5505 GB, free: 9.902 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.817e-05/0.3521, allocations: 5.016 kB / 0.5505 GB, free: 9.898 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.707e-05/0.3522, allocations: 5.625 kB / 0.5505 GB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-05/0.3522, allocations: 26.14 kB / 0.5505 GB, free: 9.883 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000437/0.3526, allocations: 285 kB / 0.5508 GB, free: 9.754 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001819/0.3545, allocations: 1.235 MB / 0.552 GB, free: 8.703 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000455/0.3549, allocations: 222.7 kB / 0.5522 GB, free: 8.562 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001552/0.3551, allocations: 95.73 kB / 0.5523 GB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.314e-05/0.3551, allocations: 2.219 kB / 0.5523 GB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.3551, allocations: 35.69 kB / 0.5523 GB, free: 8.461 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.634e-06/0.3551, allocations: 1.125 kB / 0.5523 GB, free: 8.461 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008575/0.356, allocations: 446.9 kB / 0.5528 GB, free: 8.207 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.356, allocations: 83.73 kB / 0.5528 GB, free: 8.109 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001953/0.3562, allocations: 196.8 kB / 0.553 GB, free: 7.961 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/0.3563, allocations: 30.83 kB / 0.5531 GB, free: 7.926 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.3564, allocations: 168 kB / 0.5532 GB, free: 7.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.471e-05/0.3564, allocations: 59.42 kB / 0.5533 GB, free: 7.719 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.644e-05/0.3565, allocations: 43.86 kB / 0.5533 GB, free: 7.688 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.3567, allocations: 334.7 kB / 0.5536 GB, free: 7.355 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.3568, allocations: 88.61 kB / 0.5537 GB, free: 7.312 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001856/0.357, allocations: 162.2 kB / 0.5539 GB, free: 7.176 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003504/0.3573, allocations: 262.3 kB / 0.5541 GB, free: 6.992 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3573, allocations: 1.188 kB / 0.5541 GB, free: 6.992 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004492/0.3578, allocations: 301.5 kB / 0.5544 GB, free: 6.824 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.3578, allocations: 6.625 kB / 0.5544 GB, free: 6.824 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.3578, allocations: 6.125 kB / 0.5544 GB, free: 6.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.3578, allocations: 11.83 kB / 0.5544 GB, free: 6.812 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002499/0.3581, allocations: 56.31 kB / 0.5545 GB, free: 6.797 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.3581, allocations: 3.719 kB / 0.5545 GB, free: 6.797 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001451/0.3582, allocations: 11.05 kB / 0.5545 GB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.332e-05/0.3583, allocations: 15.19 kB / 0.5545 GB, free: 6.785 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001493/0.3584, allocations: 153.2 kB / 0.5547 GB, free: 6.645 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.144e-05/0.3585, allocations: 17 kB / 0.5547 GB, free: 6.637 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003899/0.3589, allocations: 229.3 kB / 0.5549 GB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.3589, allocations: 2.156 kB / 0.5549 GB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.3589, allocations: 1.094 kB / 0.5549 GB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.3589, allocations: 3.984 kB / 0.5549 GB, free: 6.488 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001412/0.3603, allocations: 0.9172 MB / 0.5558 GB, free: 5.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.3603, allocations: 4.375 kB / 0.5558 GB, free: 5.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001501/0.3604, allocations: 42.25 kB / 0.5558 GB, free: 5.754 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.3604, allocations: 5.625 kB / 0.5558 GB, free: 5.754 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.998e-05/0.3605, allocations: 10.22 kB / 0.5559 GB, free: 5.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.554e-06/0.3605, allocations: 8.562 kB / 0.5559 GB, free: 5.746 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.3605, allocations: 8.531 kB / 0.5559 GB, free: 5.742 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004486/0.3609, allocations: 423.6 kB / 0.5563 GB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.136e-05/0.361, allocations: 31.67 kB / 0.5563 GB, free: 5.344 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.823e-05/0.361, allocations: 11.92 kB / 0.5563 GB, free: 5.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001768/0.3612, allocations: 12 kB / 0.5563 GB, free: 5.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.294e-05/0.3612, allocations: 27.84 kB / 0.5564 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.786e-05/0.3612, allocations: 12 kB / 0.5564 GB, free: 5.281 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001462/0.3614, allocations: 147 kB / 0.5565 GB, free: 5.137 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3614, allocations: 0 / 0.5565 GB, free: 5.137 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003819/0.3618, allocations: 52 kB / 0.5566 GB, free: 5.086 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007707/0.3625, allocations: 0.9404 MB / 0.5575 GB, free: 4.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003758/0.3629, allocations: 215.5 kB / 0.5577 GB, free: 3.859 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3629, allocations: 0 / 0.5577 GB, free: 3.859 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001558/0.3631, allocations: 97.31 kB / 0.5578 GB, free: 3.766 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004772/0.3636, allocations: 46.67 kB / 0.5578 GB, free: 3.723 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003335/0.3669, allocations: 2.703 MB / 0.5605 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004735/0.3674, allocations: 0.7593 MB / 0.5612 GB, free: 16 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001583/0.3675, allocations: 53.59 kB / 0.5613 GB, free: 15.94 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/0.3677, allocations: 71.34 kB / 0.5613 GB, free: 15.87 MB / 414.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3677, allocations: 0 / 0.5613 GB, free: 15.87 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03132/0.399, allocations: 4.431 MB / 0.5656 GB, free: 11.56 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/11.2, allocations: 10.06 kB / 0.5657 GB, free: 11.56 MB / 414.1 MB " [Timeout remaining time 649] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_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_FixedCurrentTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedCurrentTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.FixedCurrentTest_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv failed! Error: Could not read variable line.i[1] in file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv. Warning: Get data of variable line.i[1] from file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv failed! Error: Could not read variable line.i[2] in file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv. Warning: Get data of variable line.i[2] from file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv failed! Error: Could not read variable line.p[2] in file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv. Warning: Get data of variable line.p[2] from file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv failed! Error: Could not read variable line.v[1] in file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv. Warning: Get data of variable line.v[1] from file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv failed! Error: Could not read variable line.v[2] in file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv. Warning: Get data of variable line.v[2] from file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.12291885400191]