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.001325/0.001325, allocations: 107.5 kB / 21.21 MB, free: 0.6523 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.001543/0.001543, allocations: 212.5 kB / 24.51 MB, free: 3.941 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.542/1.542, allocations: 230.6 MB / 258.3 MB, free: 7.789 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.1864/0.1864, allocations: 38.55 MB / 353.2 MB, free: 12.3 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",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.002423/0.002423, allocations: 67.89 kB / 493.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3499/0.3524, allocations: 62.46 MB / 0.5427 GB, free: 252 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.004994/0.3574, allocations: 3.457 MB / 0.5461 GB, free: 13.56 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002131/0.3595, allocations: 1.418 MB / 0.5475 GB, free: 12.47 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.3596, allocations: 13.03 kB / 0.5475 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008583/0.3605, allocations: 247.1 kB / 0.5477 GB, free: 12.28 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006769/0.3612, allocations: 279.9 kB / 0.548 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000377/0.3615, allocations: 134 kB / 0.5481 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005026/0.362, allocations: 338.7 kB / 0.5484 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002971/0.3623, allocations: 122.8 kB / 0.5485 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003589/0.3627, allocations: 168.2 kB / 0.5487 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002646/0.363, allocations: 162 kB / 0.5488 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.726e-05/0.363, allocations: 14.38 kB / 0.5489 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000513/0.3635, allocations: 284.2 kB / 0.5491 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.3636, allocations: 98.73 kB / 0.5492 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001159/0.3637, allocations: 93.55 kB / 0.5493 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005234/0.3643, allocations: 361.3 kB / 0.5497 GB, free: 11.04 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.3643, allocations: 0 / 0.5497 GB, free: 11.04 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3643, allocations: 0 / 0.5497 GB, free: 11.04 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.3643, allocations: 1.406 kB / 0.5497 GB, free: 11.04 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.0007246/0.365, allocations: 451.2 kB / 0.5501 GB, free: 10.64 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.365, allocations: 13.89 kB / 0.5501 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.125e-05/0.3651, allocations: 5.219 kB / 0.5501 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.933e-05/0.3651, allocations: 57.94 kB / 0.5502 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008954/0.366, allocations: 97.55 kB / 0.5503 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003469/0.3664, allocations: 218.2 kB / 0.5505 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.973e-05/0.3664, allocations: 11.66 kB / 0.5505 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.225e-05/0.3664, allocations: 22.84 kB / 0.5505 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005321/0.367, allocations: 320.2 kB / 0.5508 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.367, allocations: 3.938 kB / 0.5508 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.94e-05/0.367, allocations: 6.781 kB / 0.5508 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.82e-05/0.3671, allocations: 26.05 kB / 0.5508 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004826/0.3675, allocations: 284.4 kB / 0.5511 GB, free: 9.949 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001896/0.3694, allocations: 1.196 MB / 0.5523 GB, free: 8.938 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004885/0.3699, allocations: 230 kB / 0.5525 GB, free: 8.789 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001497/0.3701, allocations: 91.98 kB / 0.5526 GB, free: 8.734 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.3701, allocations: 1.906 kB / 0.5526 GB, free: 8.734 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.414e-05/0.3701, allocations: 37.34 kB / 0.5526 GB, free: 8.691 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.723e-06/0.3701, allocations: 0 / 0.5526 GB, free: 8.691 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.0009323/0.3711, allocations: 455.6 kB / 0.5531 GB, free: 8.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.827e-05/0.3711, allocations: 79.3 kB / 0.5531 GB, free: 8.336 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002181/0.3714, allocations: 196.5 kB / 0.5533 GB, free: 8.188 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.3714, allocations: 30.83 kB / 0.5534 GB, free: 8.152 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.3715, allocations: 160.2 kB / 0.5535 GB, free: 8.004 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.321e-05/0.3716, allocations: 59.64 kB / 0.5536 GB, free: 7.953 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.908e-05/0.3716, allocations: 47.48 kB / 0.5536 GB, free: 7.918 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.3718, allocations: 336.7 kB / 0.5539 GB, free: 7.586 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001388/0.3719, allocations: 88.08 kB / 0.554 GB, free: 7.543 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.3721, allocations: 158.8 kB / 0.5542 GB, free: 7.41 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003492/0.3725, allocations: 260.1 kB / 0.5544 GB, free: 7.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3725, allocations: 9.781 kB / 0.5544 GB, free: 7.223 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004327/0.3729, allocations: 293 kB / 0.5547 GB, free: 7.062 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.3729, allocations: 9.906 kB / 0.5547 GB, free: 7.059 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.3729, allocations: 7.172 kB / 0.5547 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.373, allocations: 3.562 kB / 0.5547 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002477/0.3732, allocations: 51.75 kB / 0.5548 GB, free: 7.043 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.3732, allocations: 7.281 kB / 0.5548 GB, free: 7.039 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/0.3734, allocations: 14.98 kB / 0.5548 GB, free: 7.031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.082e-05/0.3734, allocations: 13 kB / 0.5548 GB, free: 7.027 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.0001522/0.3736, allocations: 152.9 kB / 0.5549 GB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.971e-05/0.3736, allocations: 19.66 kB / 0.555 GB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003935/0.374, allocations: 233 kB / 0.5552 GB, free: 6.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.374, allocations: 2.281 kB / 0.5552 GB, free: 6.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.374, allocations: 1.125 kB / 0.5552 GB, free: 6.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.374, allocations: 3.984 kB / 0.5552 GB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001395/0.3754, allocations: 0.8993 MB / 0.5561 GB, free: 6.027 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.3754, allocations: 3.625 kB / 0.5561 GB, free: 6.027 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001394/0.3756, allocations: 35.86 kB / 0.5561 GB, free: 6.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.516e-06/0.3756, allocations: 9.156 kB / 0.5561 GB, free: 6.016 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.345e-05/0.3756, allocations: 13.66 kB / 0.5561 GB, free: 6.008 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.516e-06/0.3756, allocations: 9.484 kB / 0.5561 GB, free: 6.004 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.3756, allocations: 4.281 kB / 0.5561 GB, free: 6.004 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005086/0.3761, allocations: 421.8 kB / 0.5566 GB, free: 5.574 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.925e-05/0.3762, allocations: 23.83 kB / 0.5566 GB, free: 5.551 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.657e-05/0.3762, allocations: 15.94 kB / 0.5566 GB, free: 5.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.3764, allocations: 11.98 kB / 0.5566 GB, free: 5.523 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.321e-05/0.3764, allocations: 31.86 kB / 0.5566 GB, free: 5.492 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.086e-05/0.3764, allocations: 8 kB / 0.5566 GB, free: 5.484 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001499/0.3766, allocations: 151 kB / 0.5568 GB, free: 5.336 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3766, allocations: 0 / 0.5568 GB, free: 5.336 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003942/0.377, allocations: 59.94 kB / 0.5568 GB, free: 5.277 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.0007485/0.3777, allocations: 0.9365 MB / 0.5578 GB, free: 4.266 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003949/0.3781, allocations: 214 kB / 0.558 GB, free: 4.059 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.3781, allocations: 4 kB / 0.558 GB, free: 4.055 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001442/0.3783, allocations: 93.08 kB / 0.558 GB, free: 3.965 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004734/0.3787, allocations: 39.91 kB / 0.5581 GB, free: 3.926 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003504/0.3823, allocations: 2.7 MB / 0.5607 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001647/0.3824, allocations: 152.2 kB / 0.5609 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000145/0.3826, allocations: 57.58 kB / 0.5609 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.3827, allocations: 63.42 kB / 0.561 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3827, allocations: 0 / 0.561 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02356/0.4062, allocations: 4.485 MB / 0.5654 GB, free: 12.36 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.72, allocations: 8 kB / 0.5654 GB, free: 12.35 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.924613155075349]