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.001502/0.001502, allocations: 110 kB / 16.92 MB, free: 6.332 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.001821/0.001821, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.308/1.308, allocations: 222.9 MB / 241.6 MB, free: 15.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1733/0.1733, allocations: 38.04 MB / 329.7 MB, free: 8.875 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 59.09 kB / 398.9 MB, free: 34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1044, allocations: 58.06 MB / 457 MB, free: 7.996 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.007812/0.1123, allocations: 7.554 MB / 464.5 MB, free: 416 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004839/0.1172, allocations: 4.156 MB / 468.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002782/0.1175, allocations: 19.88 kB / 468.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002444/0.1199, allocations: 1.03 MB / 469.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002628/0.1226, allocations: 1.094 MB / 470.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007795/0.1233, allocations: 311.1 kB / 471.1 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001711/0.1251, allocations: 1.367 MB / 472.5 MB, free: 8.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007148/0.1258, allocations: 460 kB / 472.9 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008224/0.1266, allocations: 0.5639 MB / 473.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006764/0.1273, allocations: 0.5799 MB / 474.1 MB, free: 6.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.635e-05/0.1274, allocations: 36 kB / 474.1 MB, free: 6.777 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001568/0.129, allocations: 0.9817 MB / 475.1 MB, free: 5.793 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002755/0.1292, allocations: 271.3 kB / 475.4 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002621/0.1295, allocations: 250.8 kB / 475.6 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0011/0.1306, allocations: 0.8102 MB / 476.4 MB, free: 4.469 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1306, allocations: 4 kB / 476.4 MB, free: 4.465 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1306, allocations: 0 / 476.4 MB, free: 4.465 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.1307, allocations: 0 / 476.4 MB, free: 4.465 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.0009714/0.1316, allocations: 0.7922 MB / 477.2 MB, free: 3.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.1317, allocations: 15.88 kB / 477.2 MB, free: 3.609 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.058e-05/0.1318, allocations: 82.7 kB / 477.3 MB, free: 3.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001414/0.1332, allocations: 128.3 kB / 477.4 MB, free: 3.395 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003925/0.1336, allocations: 338.3 kB / 477.8 MB, free: 3.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.753e-05/0.1336, allocations: 33.36 kB / 477.8 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.066e-05/0.1337, allocations: 40.36 kB / 477.8 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007137/0.1344, allocations: 0.5856 MB / 478.4 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.1344, allocations: 0 / 478.4 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.158e-05/0.1345, allocations: 19.98 kB / 478.4 MB, free: 2.277 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.79e-05/0.1346, allocations: 44.62 kB / 478.5 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005096/0.1351, allocations: 386.1 kB / 478.9 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002113/0.1372, allocations: 2.599 MB / 481.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005972/0.1378, allocations: 441.7 kB / 481.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002651/0.1381, allocations: 206.5 kB / 482.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.022e-05/0.1381, allocations: 4 kB / 482.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/0.1381, allocations: 38.56 kB / 482.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.924e-06/0.1382, allocations: 0 / 482.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.001659/0.1398, allocations: 0.7656 MB / 482.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.85e-05/0.1399, allocations: 106.8 kB / 483 MB, free: 13.49 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003189/0.1402, allocations: 320.5 kB / 483.3 MB, free: 13.17 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.353e-05/0.1402, allocations: 33.69 kB / 483.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/0.1404, allocations: 247.9 kB / 483.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.923e-05/0.1405, allocations: 126.2 kB / 483.7 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.1406, allocations: 78.14 kB / 483.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.1408, allocations: 350.9 kB / 484.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001836/0.1409, allocations: 128.8 kB / 484.3 MB, free: 12.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002757/0.1412, allocations: 281.3 kB / 484.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004786/0.1417, allocations: 460.1 kB / 485 MB, free: 11.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1417, allocations: 0 / 485 MB, free: 11.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0007564/0.1425, allocations: 0.5578 MB / 485.5 MB, free: 10.78 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.1425, allocations: 7.984 kB / 485.6 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.1425, allocations: 8 kB / 485.6 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003038/0.1428, allocations: 121.3 kB / 485.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002298/0.1431, allocations: 75.91 kB / 485.8 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002409/0.1455, allocations: 2.559 MB / 488.3 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002347/0.1458, allocations: 47.53 kB / 488.4 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.708e-05/0.1458, allocations: 19.98 kB / 488.4 MB, free: 7.789 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.0002062/0.146, allocations: 198.6 kB / 488.6 MB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.918e-05/0.1461, allocations: 39.47 kB / 488.6 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.1e-05/0.1462, allocations: 56.02 kB / 488.7 MB, free: 7.492 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.666e-06/0.1462, allocations: 4 kB / 488.7 MB, free: 7.488 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.806e-06/0.1462, allocations: 7.938 kB / 488.7 MB, free: 7.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.239e-06/0.1462, allocations: 0 / 488.7 MB, free: 7.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/0.1474, allocations: 0.946 MB / 489.6 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.1474, allocations: 3.938 kB / 489.6 MB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001363/0.1475, allocations: 43.91 kB / 489.7 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002379/0.1478, allocations: 109 kB / 489.8 MB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.1478, allocations: 12 kB / 489.8 MB, free: 6.301 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002213/0.15, allocations: 2.536 MB / 492.3 MB, free: 3.613 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.15, allocations: 4.031 kB / 492.3 MB, free: 3.609 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006495/0.1507, allocations: 0.6305 MB / 493 MB, free: 2.949 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.818e-05/0.1508, allocations: 120.7 kB / 493.1 MB, free: 2.812 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.952e-05/0.1508, allocations: 7.938 kB / 493.1 MB, free: 2.805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001736/0.151, allocations: 8 kB / 493.1 MB, free: 2.797 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.315e-05/0.1511, allocations: 31.89 kB / 493.1 MB, free: 2.766 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.1511, allocations: 4 kB / 493.1 MB, free: 2.762 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000194/0.1513, allocations: 227 kB / 493.4 MB, free: 2.539 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1513, allocations: 0 / 493.4 MB, free: 2.539 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000616/0.1519, allocations: 163.7 kB / 493.5 MB, free: 2.379 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.0008768/0.1528, allocations: 1.16 MB / 494.7 MB, free: 1.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008092/0.1536, allocations: 0.5537 MB / 495.2 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.1536, allocations: 0 / 495.2 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003984/0.1541, allocations: 342.1 kB / 495.6 MB, free: 272 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005455/0.1546, allocations: 64.16 kB / 495.6 MB, free: 212 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004366/0.159, allocations: 4.016 MB / 499.6 MB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004141/0.1594, allocations: 0.8902 MB / 0.4888 GB, free: 11.03 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001638/0.1596, allocations: 62.91 kB / 0.4889 GB, free: 10.97 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.1597, allocations: 119.4 kB / 0.489 GB, free: 10.86 MB / 382.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1597, allocations: 3.938 kB / 0.489 GB, free: 10.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02892/0.1887, allocations: 7.474 MB / 0.4963 GB, free: 3.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.44/9.629, allocations: 11.75 kB / 0.4963 GB, free: 3.473 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