Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.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_dq,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_dq,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq",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.001116/0.001116, allocations: 98.64 kB / 16.5 MB, free: 6.641 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.001161/0.001161, allocations: 194.1 kB / 17.42 MB, free: 6.066 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.321/1.321, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1755/0.1755, allocations: 38.04 MB / 329.3 MB, free: 9.102 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 61.3 kB / 398.2 MB, free: 34.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0952/0.09642, allocations: 58.06 MB / 456.2 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq): time 0.008214/0.1047, allocations: 7.618 MB / 463.9 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005589/0.1103, allocations: 4.502 MB / 468.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005578/0.1109, allocations: 19.94 kB / 468.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00235/0.1133, allocations: 0.9762 MB / 469.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0028/0.1161, allocations: 1.141 MB / 470.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008731/0.117, allocations: 283.3 kB / 470.8 MB, free: 9.879 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002231/0.1192, allocations: 2.58 MB / 473.4 MB, free: 7.293 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009189/0.1201, allocations: 0.6644 MB / 474 MB, free: 6.625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007438/0.1209, allocations: 0.5016 MB / 474.5 MB, free: 6.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008355/0.1217, allocations: 0.736 MB / 475.3 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.84e-05/0.1218, allocations: 55.94 kB / 475.3 MB, free: 5.328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002464/0.1243, allocations: 1.609 MB / 476.9 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003859/0.1247, allocations: 467 kB / 477.4 MB, free: 3.258 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000388/0.1251, allocations: 425.9 kB / 477.8 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001796/0.1269, allocations: 1.519 MB / 479.3 MB, free: 1.316 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1269, allocations: 4 kB / 479.3 MB, free: 1.312 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1269, allocations: 0 / 479.3 MB, free: 1.312 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.728e-06/0.1269, allocations: 0 / 479.3 MB, free: 1.312 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.001507/0.1284, allocations: 1.131 MB / 480.5 MB, free: 136 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.1285, allocations: 8.031 kB / 480.5 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000147/0.1287, allocations: 131.2 kB / 480.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00294/0.1316, allocations: 391.3 kB / 481 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007266/0.1323, allocations: 478.6 kB / 481.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.22e-05/0.1324, allocations: 54.36 kB / 481.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001187/0.1325, allocations: 76.36 kB / 481.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001632/0.1342, allocations: 1.176 MB / 482.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.868e-05/0.1342, allocations: 11.89 kB / 482.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.441e-05/0.1343, allocations: 24 kB / 482.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.345e-05/0.1344, allocations: 73.97 kB / 482.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001757/0.1361, allocations: 1.237 MB / 484.1 MB, free: 12.42 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005039/0.1412, allocations: 3.519 MB / 487.6 MB, free: 8.805 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001539/0.1428, allocations: 1.062 MB / 488.7 MB, free: 7.723 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008173/0.1436, allocations: 0.6606 MB / 489.3 MB, free: 7.059 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.061e-05/0.1437, allocations: 16.97 kB / 489.3 MB, free: 7.039 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.413e-05/0.1437, allocations: 47.78 kB / 489.4 MB, free: 6.984 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.796e-06/0.1437, allocations: 0 / 489.4 MB, free: 6.984 MB / 366.1 MB Notification: Performance of matching and sorting (n=92): time 0.006119/0.1499, allocations: 3.083 MB / 492.5 MB, free: 3.875 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.652e-05/0.1499, allocations: 98.17 kB / 492.6 MB, free: 3.762 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003567/0.1503, allocations: 365.5 kB / 492.9 MB, free: 3.398 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.453e-05/0.1504, allocations: 41.7 kB / 493 MB, free: 3.352 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001827/0.1505, allocations: 312.2 kB / 493.3 MB, free: 3.039 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002572/0.1508, allocations: 311.4 kB / 493.6 MB, free: 2.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002326/0.1511, allocations: 158.5 kB / 493.7 MB, free: 2.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.1512, allocations: 370.8 kB / 494.1 MB, free: 2.199 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006179/0.1518, allocations: 465.7 kB / 494.6 MB, free: 1.742 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006931/0.1525, allocations: 0.5696 MB / 495.1 MB, free: 1.145 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001397/0.1539, allocations: 1.109 MB / 496.2 MB, free: 4 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1539, allocations: 3.938 kB / 496.2 MB, free: 0 / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002332/0.1563, allocations: 1.481 MB / 497.7 MB, free: 14.51 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.679e-05/0.1563, allocations: 8 kB / 497.7 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.1563, allocations: 0 / 497.7 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009554/0.1573, allocations: 334.4 kB / 498 MB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006976/0.158, allocations: 183.7 kB / 498.2 MB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004962/0.163, allocations: 3.874 MB / 0.4903 GB, free: 9.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000428/0.1634, allocations: 43.94 kB / 0.4904 GB, free: 9.914 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.603e-05/0.1635, allocations: 43.92 kB / 0.4904 GB, free: 9.871 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.0003745/0.1639, allocations: 293.5 kB / 0.4907 GB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.164, allocations: 55.34 kB / 0.4908 GB, free: 9.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002568/0.1666, allocations: 1.563 MB / 0.4923 GB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.345e-06/0.1666, allocations: 8 kB / 0.4923 GB, free: 7.938 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.1666, allocations: 8 kB / 0.4923 GB, free: 7.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.1666, allocations: 7.969 kB / 0.4923 GB, free: 7.922 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.004634/0.1713, allocations: 3.032 MB / 0.4953 GB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.828e-06/0.1713, allocations: 4.438 kB / 0.4953 GB, free: 4.758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006032/0.1719, allocations: 171.8 kB / 0.4954 GB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007692/0.1727, allocations: 288.5 kB / 0.4957 GB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.965e-05/0.1728, allocations: 27.98 kB / 0.4957 GB, free: 4.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004353/0.1771, allocations: 3.587 MB / 0.4992 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.1771, allocations: 4 kB / 0.4992 GB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2035/0.3806, allocations: 1.586 MB / 0.5008 GB, free: 56.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001862/0.3808, allocations: 147.1 kB / 0.5009 GB, free: 56.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.106e-05/0.3809, allocations: 28.73 kB / 0.501 GB, free: 56.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004089/0.3814, allocations: 40.2 kB / 0.501 GB, free: 56.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001914/0.3816, allocations: 84.97 kB / 0.5011 GB, free: 56.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.281e-05/0.3816, allocations: 35.23 kB / 0.5011 GB, free: 56.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002851/0.3819, allocations: 259.8 kB / 0.5014 GB, free: 56.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3819, allocations: 0 / 0.5014 GB, free: 56.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009494/0.3829, allocations: 305.1 kB / 0.5016 GB, free: 56.02 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.00255/0.3854, allocations: 2.165 MB / 0.5038 GB, free: 55.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002094/0.3876, allocations: 1.395 MB / 0.5051 GB, free: 54.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.3876, allocations: 1.062 kB / 0.5051 GB, free: 54.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001163/0.3887, allocations: 0.8436 MB / 0.5059 GB, free: 54.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007251/0.3895, allocations: 103.3 kB / 0.506 GB, free: 54.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01077/0.4003, allocations: 7.942 MB / 0.5138 GB, free: 50.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007096/0.401, allocations: 1.071 MB / 0.5148 GB, free: 49.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005085/0.4015, allocations: 182.4 kB / 0.515 GB, free: 49.28 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003476/0.4019, allocations: 263.1 kB / 0.5153 GB, free: 49.09 MB / 382.1 MB Notification: Performance of SimCode: time 2.334e-06/0.4019, allocations: 0 / 0.5153 GB, free: 49.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0685/0.4704, allocations: 15.55 MB / 0.5305 GB, free: 40.67 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001664/0.4706, allocations: 233.9 kB / 0.5307 GB, free: 40.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.905/2.375, allocations: 3.625 kB / 0.5307 GB, free: 40.41 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop_dq.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches