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.001359/0.001359, allocations: 108.6 kB / 16.51 MB, free: 6.691 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.001558/0.001558, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.27/1.27, allocations: 222.9 MB / 241.1 MB, free: 15.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1623/0.1623, allocations: 38.04 MB / 329.3 MB, free: 9.137 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001109/0.001109, allocations: 60.52 kB / 398.2 MB, free: 34.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1013, allocations: 58.07 MB / 456.3 MB, free: 8.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop): time 0.007628/0.109, allocations: 7.609 MB / 463.9 MB, free: 0.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005338/0.1144, allocations: 4.491 MB / 468.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003174/0.1147, allocations: 15.94 kB / 468.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001974/0.1167, allocations: 0.9756 MB / 469.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002014/0.1188, allocations: 1.145 MB / 470.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006378/0.1194, allocations: 291.3 kB / 470.8 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00182/0.1212, allocations: 2.573 MB / 473.3 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008387/0.1221, allocations: 0.6645 MB / 474 MB, free: 6.652 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005863/0.1227, allocations: 0.5094 MB / 474.5 MB, free: 6.141 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000734/0.1234, allocations: 0.7321 MB / 475.3 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.968e-05/0.1235, allocations: 48 kB / 475.3 MB, free: 5.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002118/0.1257, allocations: 1.613 MB / 476.9 MB, free: 3.742 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000351/0.126, allocations: 470.9 kB / 477.4 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003538/0.1264, allocations: 417.9 kB / 477.8 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001496/0.1279, allocations: 1.527 MB / 479.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.247e-06/0.1279, allocations: 0 / 479.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.42e-07/0.1279, allocations: 3.938 kB / 479.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.806e-06/0.1279, allocations: 0 / 479.3 MB, free: 1.336 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.001385/0.1293, allocations: 1.132 MB / 480.4 MB, free: 156 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.1293, allocations: 12.03 kB / 480.5 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001255/0.1295, allocations: 127.2 kB / 480.6 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002897/0.1324, allocations: 399.4 kB / 481 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005865/0.133, allocations: 474.6 kB / 481.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.867e-05/0.133, allocations: 58.36 kB / 481.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/0.1332, allocations: 68.36 kB / 481.6 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001547/0.1347, allocations: 1.18 MB / 482.7 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.598e-05/0.1347, allocations: 7.844 kB / 482.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.304e-05/0.1348, allocations: 31.98 kB / 482.8 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.353e-05/0.1349, allocations: 73.95 kB / 482.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001635/0.1366, allocations: 1.234 MB / 484.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004855/0.1414, allocations: 3.511 MB / 487.6 MB, free: 8.824 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001505/0.1429, allocations: 1.069 MB / 488.7 MB, free: 7.738 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008519/0.1438, allocations: 0.6659 MB / 489.3 MB, free: 7.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.864e-05/0.1439, allocations: 16.98 kB / 489.3 MB, free: 7.051 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.203e-05/0.1439, allocations: 43.56 kB / 489.4 MB, free: 7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.725e-06/0.1439, allocations: 0 / 489.4 MB, free: 7 MB / 366.1 MB Notification: Performance of matching and sorting (n=92): time 0.006266/0.1502, allocations: 3.083 MB / 492.5 MB, free: 3.891 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.012e-05/0.1503, allocations: 90.14 kB / 492.6 MB, free: 3.785 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004304/0.1508, allocations: 365.5 kB / 492.9 MB, free: 3.422 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.994e-05/0.1508, allocations: 41.7 kB / 493 MB, free: 3.375 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002224/0.1511, allocations: 312.2 kB / 493.3 MB, free: 3.062 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002951/0.1514, allocations: 315.4 kB / 493.6 MB, free: 2.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002288/0.1516, allocations: 158.5 kB / 493.7 MB, free: 2.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.1517, allocations: 366.8 kB / 494.1 MB, free: 2.223 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006071/0.1523, allocations: 465.7 kB / 494.5 MB, free: 1.766 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000694/0.153, allocations: 0.5734 MB / 495.1 MB, free: 1.164 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001383/0.1544, allocations: 1.113 MB / 496.2 MB, free: 20 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.1545, allocations: 0 / 496.2 MB, free: 20 kB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002442/0.1569, allocations: 1.481 MB / 497.7 MB, free: 14.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.1569, allocations: 4 kB / 497.7 MB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.157, allocations: 11.92 kB / 497.7 MB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009227/0.1579, allocations: 330.4 kB / 498 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000661/0.1586, allocations: 179.7 kB / 498.2 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004794/0.1634, allocations: 3.868 MB / 0.4903 GB, free: 9.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004562/0.1638, allocations: 43.95 kB / 0.4904 GB, free: 9.938 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.159e-05/0.1639, allocations: 43.92 kB / 0.4904 GB, free: 9.895 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.0003768/0.1643, allocations: 297.5 kB / 0.4907 GB, free: 9.594 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.1644, allocations: 59.33 kB / 0.4907 GB, free: 9.535 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002495/0.1669, allocations: 1.563 MB / 0.4923 GB, free: 7.961 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.1669, allocations: 12 kB / 0.4923 GB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.1669, allocations: 4 kB / 0.4923 GB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.839e-06/0.167, allocations: 3.984 kB / 0.4923 GB, free: 7.941 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.004495/0.1715, allocations: 3.04 MB / 0.4953 GB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.1715, allocations: 4.438 kB / 0.4953 GB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005824/0.1721, allocations: 167.8 kB / 0.4954 GB, free: 4.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007384/0.1728, allocations: 292.5 kB / 0.4957 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.493e-05/0.1729, allocations: 20 kB / 0.4957 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004236/0.1771, allocations: 3.589 MB / 0.4992 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.765e-05/0.1772, allocations: 15.91 kB / 0.4992 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1818/0.359, allocations: 1.582 MB / 0.5008 GB, free: 56.28 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001716/0.3592, allocations: 151.2 kB / 0.5009 GB, free: 56.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.831e-05/0.3593, allocations: 22.53 kB / 0.5009 GB, free: 56.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004203/0.3597, allocations: 43.36 kB / 0.501 GB, free: 56.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001813/0.3599, allocations: 84.95 kB / 0.5011 GB, free: 56.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.873e-05/0.36, allocations: 34.12 kB / 0.5011 GB, free: 56.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002736/0.3603, allocations: 258.1 kB / 0.5013 GB, free: 56.1 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3603, allocations: 0 / 0.5013 GB, free: 56.1 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009226/0.3612, allocations: 305.8 kB / 0.5016 GB, free: 56.1 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.002377/0.3636, allocations: 2.166 MB / 0.5038 GB, free: 55.19 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002022/0.3656, allocations: 1.392 MB / 0.5051 GB, free: 54.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3656, allocations: 1.094 kB / 0.5051 GB, free: 54.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.3667, allocations: 0.8414 MB / 0.5059 GB, free: 54.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006911/0.3674, allocations: 106.2 kB / 0.506 GB, free: 54.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01133/0.3788, allocations: 7.949 MB / 0.5138 GB, free: 50.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006517/0.3795, allocations: 1.069 MB / 0.5148 GB, free: 49.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000483/0.38, allocations: 182.2 kB / 0.515 GB, free: 49.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000345/0.3803, allocations: 260.7 kB / 0.5153 GB, free: 49.16 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3803, allocations: 0 / 0.5153 GB, free: 49.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02484/0.4052, allocations: 15.55 MB / 0.5305 GB, free: 40.66 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002317/0.4054, allocations: 231.4 kB / 0.5307 GB, free: 40.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.972/2.377, allocations: 3.938 kB / 0.5307 GB, free: 40.4 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