Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.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_dq0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_dq0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq0",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.001175/0.001176, allocations: 111.1 kB / 16.51 MB, free: 6.707 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.001206/0.001206, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.316/1.316, allocations: 222.9 MB / 241.1 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.1639/0.1639, allocations: 38.04 MB / 329.3 MB, free: 9.051 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001297, allocations: 61.88 kB / 398.2 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09859/0.0999, allocations: 58.06 MB / 456.3 MB, free: 8.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq0): time 0.009124/0.1091, allocations: 7.626 MB / 463.9 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006724/0.1158, allocations: 4.553 MB / 468.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004484/0.1163, allocations: 15.94 kB / 468.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00228/0.1187, allocations: 0.9891 MB / 469.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002832/0.1215, allocations: 1.207 MB / 470.6 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009417/0.1225, allocations: 303.3 kB / 470.9 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002493/0.125, allocations: 2.584 MB / 473.5 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001237/0.1262, allocations: 0.8254 MB / 474.4 MB, free: 6.234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008868/0.1271, allocations: 0.5173 MB / 474.9 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009952/0.1281, allocations: 0.8179 MB / 475.7 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001076/0.1282, allocations: 60 kB / 475.7 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003126/0.1314, allocations: 1.801 MB / 477.5 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005586/0.1319, allocations: 0.6001 MB / 478.1 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006066/0.1325, allocations: 0.5365 MB / 478.7 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002733/0.1353, allocations: 1.948 MB / 480.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1353, allocations: 0 / 480.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1353, allocations: 4 kB / 480.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.1353, allocations: 0 / 480.6 MB, free: 15.93 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 267 * Number of variables: 267 Notification: Performance of Generate backend data structure: time 0.001965/0.1373, allocations: 1.338 MB / 482 MB, free: 14.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.1374, allocations: 8.031 kB / 482 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001687/0.1375, allocations: 156.8 kB / 482.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00371/0.1412, allocations: 0.5419 MB / 482.7 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008349/0.1421, allocations: 0.5481 MB / 483.2 MB, free: 13.24 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.772e-05/0.1422, allocations: 66.36 kB / 483.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001398/0.1423, allocations: 92.27 kB / 483.4 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002206/0.1445, allocations: 1.508 MB / 484.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.033e-05/0.1446, allocations: 4 kB / 484.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-05/0.1447, allocations: 35.98 kB / 484.9 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001207/0.1448, allocations: 98 kB / 485 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002145/0.1469, allocations: 1.554 MB / 486.6 MB, free: 9.84 MB / 366.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 preOpt removeSimpleEquations (simulation): time 0.007045/0.154, allocations: 4.911 MB / 491.5 MB, free: 4.715 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001647/0.1557, allocations: 1.185 MB / 492.7 MB, free: 3.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009382/0.1566, allocations: 0.7663 MB / 493.4 MB, free: 2.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.464e-05/0.1567, allocations: 21.06 kB / 493.5 MB, free: 2.711 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.258e-05/0.1567, allocations: 47.55 kB / 493.5 MB, free: 2.656 MB / 366.1 MB Notification: Performance of pre-optimization done (n=107): time 4.208e-06/0.1567, allocations: 96 / 493.5 MB, free: 2.656 MB / 366.1 MB Notification: Performance of matching and sorting (n=108): time 0.007398/0.1641, allocations: 3.685 MB / 497.2 MB, free: 14.92 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.1642, allocations: 86.11 kB / 497.3 MB, free: 14.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005645/0.1648, allocations: 473.8 kB / 497.7 MB, free: 14.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.599e-05/0.1649, allocations: 41.7 kB / 497.8 MB, free: 14.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002964/0.1652, allocations: 427.4 kB / 498.2 MB, free: 13.87 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003435/0.1655, allocations: 370.6 kB / 498.6 MB, free: 13.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003071/0.1658, allocations: 206.8 kB / 498.8 MB, free: 13.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.166, allocations: 386.8 kB / 499.1 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007735/0.1668, allocations: 0.5373 MB / 499.7 MB, free: 12.37 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009637/0.1678, allocations: 0.7501 MB / 0.4887 GB, free: 11.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001858/0.1696, allocations: 1.408 MB / 0.4901 GB, free: 10.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.96e-06/0.1696, allocations: 4 kB / 0.4901 GB, free: 10.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002906/0.1726, allocations: 1.802 MB / 0.4918 GB, free: 8.234 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/0.1726, allocations: 12.03 kB / 0.4918 GB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.1726, allocations: 4 kB / 0.4918 GB, free: 8.219 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001074/0.1737, allocations: 405.4 kB / 0.4922 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008239/0.1745, allocations: 235.6 kB / 0.4925 GB, free: 7.586 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006543/0.1811, allocations: 5.598 MB / 0.4979 GB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007257/0.1818, allocations: 67.83 kB / 0.498 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.224e-05/0.1819, allocations: 47.98 kB / 0.498 GB, free: 1.578 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (105): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,26,100.0%), (1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005032/0.1824, allocations: 353.4 kB / 0.4984 GB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/0.1826, allocations: 71.16 kB / 0.4984 GB, free: 1.152 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1815/0.3641, allocations: 1.808 MB / 0.5002 GB, free: 55.53 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.584e-05/0.3641, allocations: 11.72 kB / 0.5002 GB, free: 55.53 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-05/0.3642, allocations: 9.219 kB / 0.5002 GB, free: 55.53 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.491e-05/0.3642, allocations: 13.55 kB / 0.5002 GB, free: 55.52 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.006416/0.3706, allocations: 3.464 MB / 0.5036 GB, free: 54.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.049e-05/0.3707, allocations: 9.016 kB / 0.5036 GB, free: 54.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007503/0.3714, allocations: 187 kB / 0.5038 GB, free: 54.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00102/0.3725, allocations: 354.9 kB / 0.5041 GB, free: 54.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.202e-05/0.3725, allocations: 28.56 kB / 0.5042 GB, free: 54.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005885/0.3784, allocations: 5.327 MB / 0.5094 GB, free: 50.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.3785, allocations: 7.281 kB / 0.5094 GB, free: 50.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002975/0.3815, allocations: 1.832 MB / 0.5112 GB, free: 50.01 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002131/0.3817, allocations: 165.8 kB / 0.5113 GB, free: 49.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/0.3818, allocations: 22 kB / 0.5114 GB, free: 49.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005114/0.3823, allocations: 51.38 kB / 0.5114 GB, free: 49.87 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002536/0.3826, allocations: 88.56 kB / 0.5115 GB, free: 49.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.731e-05/0.3827, allocations: 41.11 kB / 0.5115 GB, free: 49.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003774/0.3831, allocations: 328.8 kB / 0.5118 GB, free: 49.69 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3831, allocations: 0 / 0.5118 GB, free: 49.69 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00132/0.3844, allocations: 397.2 kB / 0.5122 GB, free: 49.65 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 (91): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,7,100.0%), (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.002796/0.3872, allocations: 2.393 MB / 0.5146 GB, free: 48.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002584/0.3898, allocations: 1.738 MB / 0.5163 GB, free: 47.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.3898, allocations: 1.125 kB / 0.5163 GB, free: 47.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001531/0.3914, allocations: 1.086 MB / 0.5173 GB, free: 46.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009958/0.3924, allocations: 124.3 kB / 0.5174 GB, free: 46.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01318/0.4056, allocations: 9.701 MB / 0.5269 GB, free: 41.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007923/0.4064, allocations: 1.172 MB / 0.528 GB, free: 40.9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005356/0.4069, allocations: 237 kB / 0.5283 GB, free: 40.81 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004402/0.4074, allocations: 347 kB / 0.5286 GB, free: 40.52 MB / 382.1 MB Notification: Performance of SimCode: time 1.212e-06/0.4074, allocations: 4 kB / 0.5286 GB, free: 40.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03675/0.4442, allocations: 19.28 MB / 0.5474 GB, free: 22.19 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002607/0.4445, allocations: 235 kB / 0.5477 GB, free: 21.93 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.995/2.439, allocations: 0 / 0.5477 GB, free: 21.93 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq0_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq0.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches