Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001844/0.001844, allocations: 122.1 kB / 17.78 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001995/0.001995, allocations: 189.2 kB / 20.73 MB, free: 2.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.557/1.557, allocations: 225.6 MB / 249.1 MB, free: 3.637 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1966/0.1966, allocations: 38.51 MB / 342.5 MB, free: 8.094 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_d,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_d,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 71.14 kB / 478.6 MB, free: 33.66 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1249, allocations: 61.24 MB / 0.5272 GB, free: 1.488 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.009918/0.1348, allocations: 7.639 MB / 0.5347 GB, free: 9.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006359/0.1412, allocations: 4.198 MB / 0.5388 GB, free: 5.605 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000494/0.1417, allocations: 15.94 kB / 0.5388 GB, free: 5.59 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002722/0.1444, allocations: 1.039 MB / 0.5398 GB, free: 4.547 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002869/0.1473, allocations: 1.113 MB / 0.5409 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008551/0.1481, allocations: 307.2 kB / 0.5412 GB, free: 3.129 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00177/0.1499, allocations: 1.367 MB / 0.5425 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007199/0.1506, allocations: 371.9 kB / 0.5429 GB, free: 1.387 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009149/0.1515, allocations: 0.564 MB / 0.5434 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009534/0.1525, allocations: 0.6539 MB / 0.5441 GB, free: 168 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.043e-05/0.1525, allocations: 36 kB / 0.5441 GB, free: 132 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001988/0.1545, allocations: 1.017 MB / 0.5451 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003607/0.1549, allocations: 279.2 kB / 0.5454 GB, free: 14.84 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003243/0.1552, allocations: 250.8 kB / 0.5456 GB, free: 14.59 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001404/0.1566, allocations: 0.8135 MB / 0.5464 GB, free: 13.77 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.1566, allocations: 0 / 0.5464 GB, free: 13.77 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1566, allocations: 4 kB / 0.5464 GB, free: 13.77 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.1566, allocations: 0 / 0.5464 GB, free: 13.77 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.001473/0.1581, allocations: 0.8183 MB / 0.5472 GB, free: 12.9 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.84e-05/0.1582, allocations: 11.89 kB / 0.5472 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001189/0.1583, allocations: 82.7 kB / 0.5473 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001635/0.1599, allocations: 140.5 kB / 0.5474 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006889/0.1606, allocations: 334.6 kB / 0.5478 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.399e-05/0.1606, allocations: 29.36 kB / 0.5478 GB, free: 12.27 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.36e-05/0.1607, allocations: 40.38 kB / 0.5478 GB, free: 12.23 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008675/0.1616, allocations: 0.5867 MB / 0.5484 GB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.874e-05/0.1616, allocations: 0 / 0.5484 GB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.577e-05/0.1616, allocations: 23.92 kB / 0.5484 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-05/0.1617, allocations: 36.62 kB / 0.5485 GB, free: 11.52 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006192/0.1623, allocations: 382.1 kB / 0.5488 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003029/0.1654, allocations: 2.6 MB / 0.5514 GB, free: 8.414 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007442/0.1661, allocations: 411.8 kB / 0.5517 GB, free: 7.984 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003073/0.1664, allocations: 190.4 kB / 0.5519 GB, free: 7.789 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.1664, allocations: 8 kB / 0.5519 GB, free: 7.781 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.581e-05/0.1665, allocations: 38.56 kB / 0.552 GB, free: 7.734 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.595e-06/0.1665, allocations: 0 / 0.552 GB, free: 7.734 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.00188/0.1684, allocations: 0.7695 MB / 0.5527 GB, free: 6.938 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.531e-05/0.1685, allocations: 110.8 kB / 0.5528 GB, free: 6.805 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003928/0.1688, allocations: 320.5 kB / 0.5531 GB, free: 6.488 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.371e-05/0.1689, allocations: 37.95 kB / 0.5532 GB, free: 6.445 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002316/0.1691, allocations: 256.3 kB / 0.5534 GB, free: 6.188 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001196/0.1692, allocations: 115 kB / 0.5535 GB, free: 6.074 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000133/0.1694, allocations: 78.09 kB / 0.5536 GB, free: 5.988 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000244/0.1696, allocations: 346.8 kB / 0.5539 GB, free: 5.641 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002162/0.1698, allocations: 132.7 kB / 0.5541 GB, free: 5.512 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004282/0.1703, allocations: 278.3 kB / 0.5543 GB, free: 5.176 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006114/0.1709, allocations: 464 kB / 0.5548 GB, free: 4.656 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.1709, allocations: 4 kB / 0.5548 GB, free: 4.652 MB / 414.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00097/0.1718, allocations: 0.5545 MB / 0.5553 GB, free: 4.09 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.1719, allocations: 14.62 kB / 0.5553 GB, free: 4.078 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.1719, allocations: 4 kB / 0.5553 GB, free: 4.074 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003689/0.1722, allocations: 123.4 kB / 0.5554 GB, free: 3.953 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002471/0.1725, allocations: 67.91 kB / 0.5555 GB, free: 3.887 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003337/0.1758, allocations: 2.571 MB / 0.558 GB, free: 1.168 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002968/0.1761, allocations: 43.67 kB / 0.5581 GB, free: 1.125 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.768e-05/0.1762, allocations: 16 kB / 0.5581 GB, free: 1.109 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003204/0.1765, allocations: 201.7 kB / 0.5583 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.499e-05/0.1766, allocations: 35.77 kB / 0.5583 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.83e-05/0.1767, allocations: 47.95 kB / 0.5584 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.1767, allocations: 8.062 kB / 0.5584 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.629e-05/0.1767, allocations: 3.938 kB / 0.5584 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.321e-06/0.1767, allocations: 3.984 kB / 0.5584 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001527/0.1782, allocations: 0.9422 MB / 0.5593 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-06/0.1782, allocations: 0 / 0.5593 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/0.1784, allocations: 35.92 kB / 0.5593 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000281/0.1787, allocations: 111.4 kB / 0.5594 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.1787, allocations: 4 kB / 0.5594 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003049/0.1817, allocations: 2.564 MB / 0.5619 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/0.1817, allocations: 4.031 kB / 0.5619 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00089/0.1826, allocations: 0.6227 MB / 0.5625 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000151/0.1828, allocations: 120.8 kB / 0.5627 GB, free: 12.13 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.848e-05/0.1828, allocations: 11.94 kB / 0.5627 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001714/0.183, allocations: 8 kB / 0.5627 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.566e-05/0.183, allocations: 27.97 kB / 0.5627 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.778e-05/0.1831, allocations: 4 kB / 0.5627 GB, free: 12.08 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002793/0.1833, allocations: 227 kB / 0.5629 GB, free: 11.86 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1833, allocations: 0 / 0.5629 GB, free: 11.86 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007378/0.1841, allocations: 155.8 kB / 0.5631 GB, free: 11.71 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001184/0.1853, allocations: 1.156 MB / 0.5642 GB, free: 10.52 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0009555/0.1862, allocations: 0.5144 MB / 0.5647 GB, free: 9.988 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.1862, allocations: 1.312 kB / 0.5647 GB, free: 9.988 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004834/0.1867, allocations: 338.1 kB / 0.565 GB, free: 9.645 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005397/0.1872, allocations: 67.78 kB / 0.5651 GB, free: 9.582 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005218/0.1925, allocations: 3.995 MB / 0.569 GB, free: 5.352 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006683/0.1931, allocations: 0.8863 MB / 0.5699 GB, free: 4.438 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001927/0.1933, allocations: 66.91 kB / 0.5699 GB, free: 4.371 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001583/0.1935, allocations: 111.4 kB / 0.57 GB, free: 4.262 MB / 430.1 MB Notification: Performance of SimCode: time 8.92e-07/0.1935, allocations: 0 / 0.57 GB, free: 4.262 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03483/0.2283, allocations: 7.735 MB / 0.5776 GB, free: 12.65 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/10.93, allocations: 9.406 kB / 0.5776 GB, free: 12.64 MB / 446.1 MB " [Timeout remaining time 649] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_d.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop_d.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.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.17409604229033]