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.001903/0.001903, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.002089/0.002089, allocations: 219 kB / 21.46 MB, free: 1.586 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.58/1.58, allocations: 230.6 MB / 254.8 MB, free: 15.24 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.1949/0.1949, allocations: 38.5 MB / 349.4 MB, free: 2.625 MB / 270.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.001963/0.001963, allocations: 68.84 kB / 487.8 MB, free: 32.3 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1349, allocations: 62.41 MB / 0.5373 GB, free: 9.547 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.009599/0.1445, allocations: 3.52 MB / 0.5408 GB, free: 6.012 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00407/0.1485, allocations: 1.543 MB / 0.5423 GB, free: 4.461 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002761/0.1488, allocations: 11.94 kB / 0.5423 GB, free: 4.449 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001388/0.1502, allocations: 266.5 kB / 0.5426 GB, free: 4.191 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001048/0.1512, allocations: 278.9 kB / 0.5428 GB, free: 3.918 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004842/0.1517, allocations: 123.7 kB / 0.5429 GB, free: 3.797 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000669/0.1524, allocations: 343 kB / 0.5433 GB, free: 3.461 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003584/0.1528, allocations: 117.7 kB / 0.5434 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004892/0.1532, allocations: 171.2 kB / 0.5435 GB, free: 3.18 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000408/0.1537, allocations: 159.5 kB / 0.5437 GB, free: 3.023 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.005e-05/0.1537, allocations: 12 kB / 0.5437 GB, free: 3.012 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008174/0.1545, allocations: 343.1 kB / 0.544 GB, free: 2.676 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001866/0.1547, allocations: 111.7 kB / 0.5441 GB, free: 2.566 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001864/0.1549, allocations: 103.5 kB / 0.5442 GB, free: 2.465 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000949/0.1558, allocations: 362.7 kB / 0.5446 GB, free: 2.109 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1558, allocations: 0 / 0.5446 GB, free: 2.109 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.1559, allocations: 0 / 0.5446 GB, free: 2.109 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.1559, allocations: 0 / 0.5446 GB, free: 2.109 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.00128/0.1571, allocations: 0.5177 MB / 0.5451 GB, free: 1.543 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.1572, allocations: 8.031 kB / 0.5451 GB, free: 1.535 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.915e-05/0.1572, allocations: 12.19 kB / 0.5451 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.07e-05/0.1573, allocations: 50.73 kB / 0.5452 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001134/0.1585, allocations: 96.69 kB / 0.5452 GB, free: 1.371 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004309/0.1589, allocations: 275.7 kB / 0.5455 GB, free: 1.062 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.1589, allocations: 16.38 kB / 0.5455 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.696e-05/0.159, allocations: 16.38 kB / 0.5455 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005398/0.1595, allocations: 333.5 kB / 0.5459 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.1595, allocations: 0 / 0.5459 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.836e-05/0.1595, allocations: 8 kB / 0.5459 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-05/0.1596, allocations: 19.98 kB / 0.5459 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004795/0.1601, allocations: 287.7 kB / 0.5462 GB, free: 380 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002313/0.1624, allocations: 1.276 MB / 0.5474 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004959/0.1629, allocations: 225 kB / 0.5476 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001652/0.163, allocations: 89.73 kB / 0.5477 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.601e-05/0.1631, allocations: 7.984 kB / 0.5477 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/0.1631, allocations: 38.56 kB / 0.5478 GB, free: 14.62 MB / 414.1 MB Notification: Performance of pre-optimization done (n=16): time 1.523e-06/0.1631, allocations: 0 / 0.5478 GB, free: 14.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.0009368/0.164, allocations: 451.2 kB / 0.5482 GB, free: 14.17 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.354e-05/0.1641, allocations: 85.09 kB / 0.5483 GB, free: 14.07 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002185/0.1643, allocations: 194.3 kB / 0.5484 GB, free: 13.87 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.613e-05/0.1643, allocations: 33.69 kB / 0.5485 GB, free: 13.83 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.1645, allocations: 160.1 kB / 0.5486 GB, free: 13.67 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.865e-05/0.1645, allocations: 59.48 kB / 0.5487 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9e-05/0.1646, allocations: 49.83 kB / 0.5487 GB, free: 13.56 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002209/0.1648, allocations: 330.8 kB / 0.5491 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001479/0.165, allocations: 83.95 kB / 0.5491 GB, free: 13.14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.1652, allocations: 156.5 kB / 0.5493 GB, free: 12.96 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004174/0.1656, allocations: 264.3 kB / 0.5495 GB, free: 12.67 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1656, allocations: 0 / 0.5495 GB, free: 12.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004822/0.1661, allocations: 300.1 kB / 0.5498 GB, free: 12.38 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.1661, allocations: 4 kB / 0.5498 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.1661, allocations: 7.938 kB / 0.5498 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.1661, allocations: 8.281 kB / 0.5498 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002597/0.1664, allocations: 55.89 kB / 0.5499 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.1664, allocations: 4 kB / 0.5499 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001449/0.1666, allocations: 11.98 kB / 0.5499 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.058e-05/0.1666, allocations: 12 kB / 0.5499 GB, free: 12.27 MB / 414.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.0001657/0.1668, allocations: 158.3 kB / 0.5501 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.245e-05/0.1668, allocations: 15.91 kB / 0.5501 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004411/0.1672, allocations: 235.2 kB / 0.5503 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.1673, allocations: 8 kB / 0.5503 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1673, allocations: 0 / 0.5503 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1673, allocations: 0 / 0.5503 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001584/0.1688, allocations: 0.9554 MB / 0.5513 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.1689, allocations: 4.5 kB / 0.5513 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001546/0.169, allocations: 39.92 kB / 0.5513 GB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.433e-06/0.169, allocations: 7.938 kB / 0.5513 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.42e-05/0.169, allocations: 15.94 kB / 0.5513 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.169, allocations: 4 kB / 0.5513 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.1691, allocations: 7.984 kB / 0.5513 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005593/0.1696, allocations: 420.9 kB / 0.5517 GB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.465e-05/0.1697, allocations: 97 kB / 0.5518 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.21e-05/0.1697, allocations: 15.94 kB / 0.5518 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001834/0.1699, allocations: 11.98 kB / 0.5518 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.217e-05/0.17, allocations: 27.86 kB / 0.5519 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.303e-05/0.17, allocations: 12 kB / 0.5519 GB, free: 10.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000157/0.1702, allocations: 150.7 kB / 0.552 GB, free: 9.902 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1702, allocations: 0 / 0.552 GB, free: 9.902 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004211/0.1706, allocations: 52 kB / 0.5521 GB, free: 9.852 MB / 414.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.0008718/0.1714, allocations: 0.9392 MB / 0.553 GB, free: 8.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004167/0.1719, allocations: 211.6 kB / 0.5532 GB, free: 8.633 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.1719, allocations: 0 / 0.5532 GB, free: 8.633 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001656/0.172, allocations: 97.25 kB / 0.5533 GB, free: 8.539 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004701/0.1725, allocations: 50.62 kB / 0.5533 GB, free: 8.492 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003828/0.1763, allocations: 2.701 MB / 0.556 GB, free: 5.555 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006097/0.1769, allocations: 0.7671 MB / 0.5567 GB, free: 4.762 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001713/0.1771, allocations: 49.5 kB / 0.5568 GB, free: 4.715 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001776/0.1773, allocations: 63.41 kB / 0.5568 GB, free: 4.652 MB / 414.1 MB Notification: Performance of SimCode: time 8.92e-07/0.1773, allocations: 0 / 0.5568 GB, free: 4.652 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02268/0.2, allocations: 4.222 MB / 0.561 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.333/8.532, allocations: 11.55 kB / 0.561 GB, free: 0.5352 MB / 414.1 MB " [Timeout remaining time 651] (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: 11.74367247504415]