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.0008684/0.0008684, allocations: 90.25 kB / 16.65 MB, free: 6.59 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.0008786/0.0008786, allocations: 181.6 kB / 17.56 MB, free: 6.203 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.192/1.192, allocations: 223.2 MB / 241.6 MB, free: 14.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1624/0.1624, allocations: 38.09 MB / 330.8 MB, free: 8.527 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002638/0.0002638, allocations: 12.48 kB / 400.8 MB, free: 34.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07997/0.08025, allocations: 59.17 MB / 460 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop): time 0.006458/0.08674, allocations: 7.169 MB / 467.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004878/0.09163, allocations: 4.417 MB / 471.6 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001959/0.09185, allocations: 19.94 kB / 471.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002633/0.09212, allocations: 131.1 kB / 471.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001721/0.09385, allocations: 1.137 MB / 472.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000511/0.09437, allocations: 291.3 kB / 473.1 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001813/0.09619, allocations: 2.58 MB / 475.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001775/0.09798, allocations: 1.246 MB / 477 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004772/0.09846, allocations: 481.7 kB / 477.4 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006457/0.09912, allocations: 0.6775 MB / 478.1 MB, free: 4.727 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.178e-05/0.09918, allocations: 32 kB / 478.1 MB, free: 4.695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001761/0.1009, allocations: 1.598 MB / 479.7 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003261/0.1013, allocations: 442.9 kB / 480.2 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003349/0.1016, allocations: 419.6 kB / 480.6 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001298/0.1029, allocations: 1.499 MB / 482.1 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.1029, allocations: 0 / 482.1 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1029, allocations: 0 / 482.1 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.196e-06/0.103, allocations: 0 / 482.1 MB, free: 0.7383 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.001194/0.1042, allocations: 0.9875 MB / 483.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.1042, allocations: 12.03 kB / 483.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001273/0.1043, allocations: 119.2 kB / 483.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002694/0.107, allocations: 395.4 kB / 483.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005457/0.1076, allocations: 478.6 kB / 484 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.585e-05/0.1076, allocations: 54.36 kB / 484.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.1078, allocations: 76.27 kB / 484.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001526/0.1093, allocations: 1.184 MB / 485.4 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/0.1093, allocations: 0 / 485.4 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.239e-05/0.1094, allocations: 31.98 kB / 485.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.872e-05/0.1095, allocations: 73.95 kB / 485.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001608/0.1111, allocations: 1.237 MB / 486.7 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004502/0.1156, allocations: 3.542 MB / 490.2 MB, free: 8.348 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.1171, allocations: 1.062 MB / 491.3 MB, free: 7.266 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007917/0.1179, allocations: 0.6606 MB / 492 MB, free: 6.602 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.869e-05/0.1179, allocations: 12.98 kB / 492 MB, free: 6.586 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.118, allocations: 51.78 kB / 492 MB, free: 6.527 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 1.924e-06/0.118, allocations: 8 kB / 492 MB, free: 6.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=92): time 0.005855/0.1238, allocations: 3.103 MB / 495.1 MB, free: 3.391 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.1239, allocations: 94.05 kB / 495.2 MB, free: 3.281 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003239/0.1242, allocations: 365.6 kB / 495.6 MB, free: 2.918 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.177e-05/0.1243, allocations: 41.7 kB / 495.6 MB, free: 2.871 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000179/0.1245, allocations: 312.2 kB / 495.9 MB, free: 2.559 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002274/0.1247, allocations: 315.4 kB / 496.2 MB, free: 2.246 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.562e-05/0.1248, allocations: 69.69 kB / 496.3 MB, free: 2.172 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.125, allocations: 366.8 kB / 496.7 MB, free: 1.805 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006246/0.1256, allocations: 469.7 kB / 497.1 MB, free: 1.344 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007634/0.1264, allocations: 0.5657 MB / 497.7 MB, free: 0.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00145/0.1278, allocations: 1.113 MB / 498.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1278, allocations: 0 / 498.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002288/0.1301, allocations: 1.481 MB / 0.4886 GB, free: 14.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.1302, allocations: 12 kB / 0.4886 GB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1302, allocations: 0 / 0.4886 GB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008757/0.131, allocations: 334.2 kB / 0.4889 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006539/0.1317, allocations: 179.7 kB / 0.4891 GB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004816/0.1365, allocations: 3.878 MB / 0.4929 GB, free: 9.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004277/0.137, allocations: 43.95 kB / 0.4929 GB, free: 9.516 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.934e-05/0.1371, allocations: 39.92 kB / 0.4929 GB, free: 9.477 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.000349/0.1374, allocations: 293.6 kB / 0.4932 GB, free: 9.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.821e-05/0.1375, allocations: 59.31 kB / 0.4933 GB, free: 9.121 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002496/0.14, allocations: 1.563 MB / 0.4948 GB, free: 7.547 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.557e-06/0.14, allocations: 12 kB / 0.4948 GB, free: 7.535 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.1401, allocations: 8 kB / 0.4948 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.1401, allocations: 3.984 kB / 0.4948 GB, free: 7.523 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.004637/0.1447, allocations: 3.051 MB / 0.4978 GB, free: 4.344 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.615e-06/0.1447, allocations: 4 kB / 0.4978 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006004/0.1453, allocations: 163.8 kB / 0.498 GB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007915/0.1461, allocations: 284.8 kB / 0.4982 GB, free: 3.898 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.021e-05/0.1462, allocations: 31.98 kB / 0.4983 GB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004505/0.1507, allocations: 3.607 MB / 0.5018 GB, free: 120 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.94e-06/0.1508, allocations: 4 kB / 0.5018 GB, free: 116 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1571/0.3078, allocations: 1.582 MB / 0.5033 GB, free: 55.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001271/0.308, allocations: 146.5 kB / 0.5035 GB, free: 54.94 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.488e-05/0.3081, allocations: 23.48 kB / 0.5035 GB, free: 54.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004038/0.3085, allocations: 40.88 kB / 0.5035 GB, free: 54.94 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.3086, allocations: 87.02 kB / 0.5036 GB, free: 54.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.438e-05/0.3087, allocations: 37.2 kB / 0.5036 GB, free: 54.94 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002148/0.3089, allocations: 260.5 kB / 0.5039 GB, free: 54.85 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3089, allocations: 0 / 0.5039 GB, free: 54.85 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008107/0.3097, allocations: 303.6 kB / 0.5042 GB, free: 54.85 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.002208/0.312, allocations: 2.166 MB / 0.5063 GB, free: 54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001724/0.3137, allocations: 1.398 MB / 0.5077 GB, free: 53.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3137, allocations: 0 / 0.5077 GB, free: 53.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00098/0.3147, allocations: 0.8343 MB / 0.5085 GB, free: 53.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007144/0.3154, allocations: 109.8 kB / 0.5086 GB, free: 53.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008655/0.3241, allocations: 7.968 MB / 0.5164 GB, free: 49.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005196/0.3246, allocations: 1.071 MB / 0.5174 GB, free: 48.33 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004128/0.325, allocations: 182.5 kB / 0.5176 GB, free: 48.31 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003115/0.3254, allocations: 257.1 kB / 0.5178 GB, free: 48.13 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3254, allocations: 0 / 0.5178 GB, free: 48.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4693/0.7947, allocations: 15.22 MB / 0.5327 GB, free: 39.42 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000126/0.7949, allocations: 227.1 kB / 0.5329 GB, free: 39.17 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.38/3.175, allocations: 11.83 kB / 0.5329 GB, free: 39.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches