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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 117.5 kB / 16.63 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 186 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.284/1.284, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1664/0.1664, allocations: 38.04 MB / 329.4 MB, free: 9.035 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 70.44 kB / 398.4 MB, free: 34.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1083, allocations: 58.06 MB / 456.5 MB, free: 8.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.008541/0.1169, allocations: 7.755 MB / 464.2 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005499/0.1225, allocations: 4.191 MB / 468.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006828/0.1232, allocations: 23.88 kB / 468.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002756/0.126, allocations: 0.9838 MB / 469.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002995/0.129, allocations: 1.032 MB / 470.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008612/0.1298, allocations: 283.3 kB / 470.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001803/0.1317, allocations: 1.367 MB / 472.1 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001133/0.1328, allocations: 0.5311 MB / 472.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001186/0.134, allocations: 0.5639 MB / 473.2 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001052/0.1351, allocations: 0.6228 MB / 473.8 MB, free: 6.914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001344/0.1352, allocations: 36 kB / 473.8 MB, free: 6.879 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001944/0.1372, allocations: 0.9933 MB / 474.8 MB, free: 5.883 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004258/0.1376, allocations: 275.4 kB / 475.1 MB, free: 5.613 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004184/0.138, allocations: 246.8 kB / 475.3 MB, free: 5.371 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001734/0.1398, allocations: 0.8997 MB / 476.2 MB, free: 4.469 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1398, allocations: 0 / 476.2 MB, free: 4.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1398, allocations: 0 / 476.2 MB, free: 4.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.41e-05/0.1398, allocations: 0 / 476.2 MB, free: 4.469 MB / 350.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.001403/0.1413, allocations: 0.7961 MB / 477 MB, free: 3.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.1413, allocations: 11.89 kB / 477 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001074/0.1414, allocations: 90.69 kB / 477.1 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001526/0.143, allocations: 136.3 kB / 477.3 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004478/0.1434, allocations: 322.4 kB / 477.6 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.917e-05/0.1435, allocations: 33.36 kB / 477.6 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.846e-05/0.1435, allocations: 40.36 kB / 477.7 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008367/0.1444, allocations: 0.5906 MB / 478.2 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.1444, allocations: 3.938 kB / 478.2 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.695e-05/0.1444, allocations: 15.98 kB / 478.3 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.984e-05/0.1445, allocations: 44.61 kB / 478.3 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000572/0.1451, allocations: 382.1 kB / 478.7 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002451/0.1475, allocations: 2.599 MB / 481.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000611/0.1482, allocations: 427.8 kB / 481.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002659/0.1484, allocations: 213.2 kB / 481.9 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.1485, allocations: 0 / 481.9 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.1485, allocations: 46.5 kB / 482 MB, free: 14.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.433e-06/0.1485, allocations: 0 / 482 MB, free: 14.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.001638/0.1502, allocations: 0.7532 MB / 482.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.404e-05/0.1502, allocations: 110.8 kB / 482.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003049/0.1506, allocations: 324.5 kB / 483.1 MB, free: 13.17 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.1506, allocations: 33.7 kB / 483.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001539/0.1507, allocations: 251.7 kB / 483.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.1509, allocations: 122.4 kB / 483.5 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000105/0.151, allocations: 85.97 kB / 483.6 MB, free: 12.67 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.1511, allocations: 342.8 kB / 483.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001796/0.1513, allocations: 128.8 kB / 484.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002698/0.1516, allocations: 279.4 kB / 484.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005015/0.1521, allocations: 452.2 kB / 484.8 MB, free: 11.35 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1521, allocations: 0 / 484.8 MB, free: 11.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.000854/0.1529, allocations: 0.5618 MB / 485.3 MB, free: 10.78 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.153, allocations: 8 kB / 485.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.153, allocations: 4.5 kB / 485.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003366/0.1533, allocations: 120.8 kB / 485.5 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00023/0.1536, allocations: 79.83 kB / 485.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002465/0.156, allocations: 2.566 MB / 488.1 MB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002157/0.1563, allocations: 39.53 kB / 488.2 MB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.771e-05/0.1563, allocations: 20 kB / 488.2 MB, free: 7.793 MB / 366.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.0002011/0.1565, allocations: 203.6 kB / 488.4 MB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.285e-05/0.1566, allocations: 39.53 kB / 488.4 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.239e-05/0.1567, allocations: 51.94 kB / 488.5 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1567, allocations: 4 kB / 488.5 MB, free: 7.492 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/0.1567, allocations: 7.938 kB / 488.5 MB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.1567, allocations: 0 / 488.5 MB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001167/0.1579, allocations: 0.9455 MB / 489.4 MB, free: 6.473 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.1579, allocations: 4 kB / 489.4 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001279/0.1581, allocations: 31.98 kB / 489.5 MB, free: 6.438 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002377/0.1583, allocations: 112.8 kB / 489.6 MB, free: 6.324 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.303e-05/0.1583, allocations: 8 kB / 489.6 MB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002296/0.1606, allocations: 2.56 MB / 492.1 MB, free: 3.605 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.1607, allocations: 0 / 492.1 MB, free: 3.605 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006696/0.1613, allocations: 0.6304 MB / 492.8 MB, free: 2.945 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.1614, allocations: 112.7 kB / 492.9 MB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.165e-05/0.1615, allocations: 11.94 kB / 492.9 MB, free: 2.805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.1617, allocations: 4 kB / 492.9 MB, free: 2.801 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.389e-05/0.1617, allocations: 27.95 kB / 492.9 MB, free: 2.773 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/0.1617, allocations: 16 kB / 492.9 MB, free: 2.758 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001922/0.1619, allocations: 215.1 kB / 493.1 MB, free: 2.547 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1619, allocations: 0 / 493.1 MB, free: 2.547 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000622/0.1626, allocations: 163.7 kB / 493.3 MB, free: 2.387 MB / 366.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.0009335/0.1635, allocations: 1.162 MB / 494.5 MB, free: 1.188 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008276/0.1644, allocations: 0.5568 MB / 495 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.1644, allocations: 1.25 kB / 495 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004907/0.1649, allocations: 342.8 kB / 495.4 MB, free: 276 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006754/0.1656, allocations: 62.66 kB / 495.4 MB, free: 216 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004683/0.1703, allocations: 4.17 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004197/0.1707, allocations: 0.8824 MB / 0.4887 GB, free: 10.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001702/0.1709, allocations: 74.91 kB / 0.4888 GB, free: 10.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001389/0.171, allocations: 115.4 kB / 0.4889 GB, free: 10.71 MB / 382.1 MB Notification: Performance of SimCode: time 5.72e-07/0.171, allocations: 0 / 0.4889 GB, free: 10.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02389/0.1949, allocations: 7.404 MB / 0.4962 GB, free: 3.453 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000293/0.1952, allocations: 232.8 kB / 0.4964 GB, free: 3.203 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.82/2.015, allocations: 0 / 0.4964 GB, free: 3.203 MB / 382.1 MB (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 --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) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop_d.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches