Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.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,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop",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.001458/0.001458, allocations: 109.8 kB / 16.92 MB, free: 6.145 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.001596/0.001596, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.439/1.439, allocations: 222.9 MB / 241.5 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2051/0.2051, allocations: 38.04 MB / 329.7 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 66.12 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1104, allocations: 58.06 MB / 457 MB, free: 7.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop): time 0.008392/0.1189, allocations: 7.41 MB / 464.4 MB, free: 500 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005574/0.1245, allocations: 4.381 MB / 468.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000338/0.1248, allocations: 15.94 kB / 468.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002492/0.1274, allocations: 1.038 MB / 469.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002668/0.13, allocations: 1.203 MB / 471 MB, free: 9.828 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008132/0.1309, allocations: 323.1 kB / 471.3 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001571/0.1325, allocations: 1.406 MB / 472.7 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009541/0.1334, allocations: 0.6611 MB / 473.4 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008736/0.1343, allocations: 0.6108 MB / 474 MB, free: 6.824 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009155/0.1352, allocations: 0.6814 MB / 474.7 MB, free: 6.141 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.649e-05/0.1353, allocations: 64 kB / 474.8 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002275/0.1376, allocations: 1.329 MB / 476.1 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000427/0.1381, allocations: 478.8 kB / 476.6 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004511/0.1385, allocations: 437.9 kB / 477 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001983/0.1405, allocations: 1.449 MB / 478.4 MB, free: 2.395 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.1405, allocations: 0 / 478.4 MB, free: 2.395 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1405, allocations: 0 / 478.4 MB, free: 2.395 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.312e-05/0.1406, allocations: 0 / 478.4 MB, free: 2.395 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.001754/0.1423, allocations: 1.135 MB / 479.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.591e-05/0.1424, allocations: 15.89 kB / 479.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000166/0.1426, allocations: 123.2 kB / 479.7 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003089/0.1456, allocations: 387.4 kB / 480.1 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006575/0.1463, allocations: 478.6 kB / 480.5 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.68e-05/0.1464, allocations: 58.36 kB / 480.6 MB, free: 124 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001163/0.1465, allocations: 72.36 kB / 480.7 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001813/0.1483, allocations: 1.18 MB / 481.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.984e-05/0.1484, allocations: 3.906 kB / 481.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.723e-05/0.1485, allocations: 31.98 kB / 481.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.895e-05/0.1486, allocations: 73.89 kB / 482 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00178/0.1504, allocations: 1.241 MB / 483.2 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005145/0.1555, allocations: 3.507 MB / 486.7 MB, free: 9.891 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001621/0.1571, allocations: 1.07 MB / 487.8 MB, free: 8.805 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008673/0.158, allocations: 0.6528 MB / 488.4 MB, free: 8.145 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.593e-05/0.1581, allocations: 20.97 kB / 488.5 MB, free: 8.121 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.355e-05/0.1581, allocations: 39.75 kB / 488.5 MB, free: 8.074 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 3.566e-06/0.1582, allocations: 3.938 kB / 488.5 MB, free: 8.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=92): time 0.006213/0.1644, allocations: 3.083 MB / 491.6 MB, free: 4.961 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.322e-05/0.1644, allocations: 94.23 kB / 491.7 MB, free: 4.852 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003749/0.1648, allocations: 365.5 kB / 492 MB, free: 4.488 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.96e-05/0.1649, allocations: 37.7 kB / 492.1 MB, free: 4.445 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001832/0.1651, allocations: 312.2 kB / 492.4 MB, free: 4.133 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002513/0.1653, allocations: 319.4 kB / 492.7 MB, free: 3.816 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002373/0.1656, allocations: 162.5 kB / 492.8 MB, free: 3.652 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.1658, allocations: 362.8 kB / 493.2 MB, free: 3.289 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000649/0.1664, allocations: 473.7 kB / 493.7 MB, free: 2.824 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007358/0.1671, allocations: 0.5657 MB / 494.2 MB, free: 2.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001496/0.1687, allocations: 1.113 MB / 495.3 MB, free: 1.086 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1687, allocations: 0 / 495.3 MB, free: 1.086 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002344/0.171, allocations: 1.473 MB / 496.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.171, allocations: 8 kB / 496.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.1711, allocations: 0 / 496.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000959/0.172, allocations: 344.8 kB / 497.2 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006788/0.1727, allocations: 175.7 kB / 497.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005943/0.1787, allocations: 4.2 MB / 0.4898 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005039/0.1792, allocations: 47.95 kB / 0.4898 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.459e-05/0.1793, allocations: 35.98 kB / 0.4899 GB, free: 10.65 MB / 382.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 (80): * Single equations (assignments): 79 * 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 {(2,26,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004714/0.1798, allocations: 293.7 kB / 0.4901 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.1799, allocations: 55.34 kB / 0.4902 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002752/0.1826, allocations: 1.567 MB / 0.4917 GB, free: 8.715 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/0.1827, allocations: 12 kB / 0.4917 GB, free: 8.703 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/0.1827, allocations: 4 kB / 0.4917 GB, free: 8.699 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.156e-05/0.1827, allocations: 7.922 kB / 0.4917 GB, free: 8.691 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005038/0.1877, allocations: 3.036 MB / 0.4947 GB, free: 5.523 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/0.1878, allocations: 4 kB / 0.4947 GB, free: 5.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006064/0.1884, allocations: 167.8 kB / 0.4949 GB, free: 5.355 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007874/0.1892, allocations: 292.9 kB / 0.4951 GB, free: 5.066 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.85e-05/0.1893, allocations: 23.98 kB / 0.4952 GB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005141/0.1944, allocations: 3.903 MB / 0.499 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.805e-06/0.1944, allocations: 16 kB / 0.499 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2041/0.3986, allocations: 1.593 MB / 0.5006 GB, free: 56 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002234/0.3988, allocations: 145.6 kB / 0.5007 GB, free: 55.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.3989, allocations: 24.28 kB / 0.5007 GB, free: 55.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004477/0.3994, allocations: 40.84 kB / 0.5008 GB, free: 55.9 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001836/0.3996, allocations: 82.7 kB / 0.5008 GB, free: 55.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.268e-05/0.3997, allocations: 41.09 kB / 0.5009 GB, free: 55.9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002829/0.3999, allocations: 259.3 kB / 0.5011 GB, free: 55.83 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4, allocations: 0 / 0.5011 GB, free: 55.83 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009736/0.4009, allocations: 304.6 kB / 0.5014 GB, free: 55.83 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (82): * Single equations (assignments): 80 * 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 {(2,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002609/0.4035, allocations: 2.16 MB / 0.5035 GB, free: 55.01 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002736/0.4063, allocations: 1.671 MB / 0.5051 GB, free: 54.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.4063, allocations: 3.188 kB / 0.5052 GB, free: 54.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001285/0.4076, allocations: 0.8435 MB / 0.506 GB, free: 54.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009325/0.4086, allocations: 103.5 kB / 0.5061 GB, free: 54.13 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01149/0.4201, allocations: 7.603 MB / 0.5135 GB, free: 50.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009829/0.4211, allocations: 1.074 MB / 0.5145 GB, free: 49.6 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00071/0.4218, allocations: 184.2 kB / 0.5147 GB, free: 49.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003942/0.4222, allocations: 256.7 kB / 0.515 GB, free: 49.41 MB / 382.1 MB Notification: Performance of SimCode: time 8.31e-07/0.4222, allocations: 0 / 0.515 GB, free: 49.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03941/0.4616, allocations: 16.2 MB / 0.5308 GB, free: 40.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.687/10.15, allocations: 13.55 kB / 0.5308 GB, free: 40.16 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches