Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.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_d,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_d,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_d",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.001192/0.001192, allocations: 100.7 kB / 16.5 MB, free: 6.699 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.001143/0.001143, allocations: 194 kB / 17.42 MB, free: 6.086 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.25/1.25, allocations: 222.9 MB / 241.1 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1649/0.1649, allocations: 38.04 MB / 329.3 MB, free: 9.09 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.001241, allocations: 57.34 kB / 398.2 MB, free: 34.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09944/0.1007, allocations: 58.07 MB / 456.3 MB, free: 8.457 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.008431/0.1092, allocations: 7.759 MB / 464 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005303/0.1145, allocations: 4.242 MB / 468.3 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004887/0.115, allocations: 15.94 kB / 468.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002196/0.1173, allocations: 0.9754 MB / 469.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003058/0.1203, allocations: 1.055 MB / 470.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008768/0.1212, allocations: 275.3 kB / 470.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00237/0.1236, allocations: 2.545 MB / 473.1 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004435/0.1241, allocations: 276.7 kB / 473.4 MB, free: 7.258 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007438/0.1248, allocations: 465.7 kB / 473.8 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007152/0.1256, allocations: 0.6228 MB / 474.5 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.06e-05/0.1256, allocations: 24 kB / 474.5 MB, free: 6.152 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001789/0.1274, allocations: 1.247 MB / 475.7 MB, free: 4.902 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002466/0.1277, allocations: 275.3 kB / 476 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002229/0.1279, allocations: 234.9 kB / 476.2 MB, free: 4.402 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001001/0.1289, allocations: 0.884 MB / 477.1 MB, free: 3.516 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1289, allocations: 0 / 477.1 MB, free: 3.516 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.1289, allocations: 0 / 477.1 MB, free: 3.516 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.1289, allocations: 0 / 477.1 MB, free: 3.516 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: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.001004/0.13, allocations: 0.8 MB / 477.9 MB, free: 2.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.13, allocations: 12.03 kB / 477.9 MB, free: 2.656 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.92e-05/0.1301, allocations: 78.72 kB / 478 MB, free: 2.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00142/0.1315, allocations: 136.2 kB / 478.1 MB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003616/0.1319, allocations: 326.4 kB / 478.5 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.64e-05/0.1319, allocations: 33.36 kB / 478.5 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.875e-05/0.132, allocations: 36.36 kB / 478.5 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007249/0.1327, allocations: 0.5789 MB / 479.1 MB, free: 1.359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.1327, allocations: 8 kB / 479.1 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.655e-05/0.1328, allocations: 27.86 kB / 479.1 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.387e-05/0.1328, allocations: 32.62 kB / 479.2 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000518/0.1334, allocations: 386.1 kB / 479.5 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002188/0.1356, allocations: 2.599 MB / 482.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006976/0.1363, allocations: 439.8 kB / 482.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002523/0.1365, allocations: 203.1 kB / 482.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.723e-05/0.1366, allocations: 4 kB / 482.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.1366, allocations: 46.55 kB / 482.8 MB, free: 13.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.294e-06/0.1366, allocations: 0 / 482.8 MB, free: 13.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.001593/0.1382, allocations: 0.7526 MB / 483.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.366e-05/0.1383, allocations: 110.8 kB / 483.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002826/0.1386, allocations: 324.5 kB / 484 MB, free: 12.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/0.1386, allocations: 29.7 kB / 484 MB, free: 12.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001378/0.1387, allocations: 251.7 kB / 484.3 MB, free: 11.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.283e-05/0.1388, allocations: 118.3 kB / 484.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.1389, allocations: 82.11 kB / 484.5 MB, free: 11.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.1391, allocations: 354.7 kB / 484.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001875/0.1393, allocations: 128.7 kB / 484.9 MB, free: 11.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002868/0.1396, allocations: 281.9 kB / 485.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005269/0.1401, allocations: 460.1 kB / 485.7 MB, free: 10.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.1401, allocations: 0 / 485.7 MB, free: 10.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008079/0.1409, allocations: 0.554 MB / 486.2 MB, free: 9.832 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.141, allocations: 8 kB / 486.2 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.141, allocations: 4 kB / 486.2 MB, free: 9.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003432/0.1413, allocations: 128.3 kB / 486.4 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002195/0.1416, allocations: 67.91 kB / 486.4 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002518/0.1441, allocations: 2.341 MB / 488.8 MB, free: 7.141 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002061/0.1443, allocations: 51.52 kB / 488.8 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.351e-05/0.1443, allocations: 23.94 kB / 488.8 MB, free: 7.066 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (41): * Single equations (assignments): 40 * 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 {(1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001895/0.1445, allocations: 203.6 kB / 489 MB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.738e-05/0.1446, allocations: 35.53 kB / 489.1 MB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.574e-05/0.1447, allocations: 51.95 kB / 489.1 MB, free: 6.773 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.1447, allocations: 4 kB / 489.1 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/0.1447, allocations: 0 / 489.1 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.1447, allocations: 7.984 kB / 489.1 MB, free: 6.762 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001118/0.1459, allocations: 0.9416 MB / 490.1 MB, free: 5.754 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.1459, allocations: 3.984 kB / 490.1 MB, free: 5.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001296/0.146, allocations: 35.92 kB / 490.1 MB, free: 5.715 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002286/0.1463, allocations: 108.9 kB / 490.2 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.984e-05/0.1463, allocations: 4 kB / 490.2 MB, free: 5.602 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002411/0.1487, allocations: 2.337 MB / 492.6 MB, free: 3.121 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1487, allocations: 0 / 492.6 MB, free: 3.121 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006897/0.1494, allocations: 0.6341 MB / 493.2 MB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.057e-05/0.1495, allocations: 108.7 kB / 493.3 MB, free: 2.332 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.021e-05/0.1495, allocations: 19.98 kB / 493.3 MB, free: 2.312 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.1497, allocations: 4 kB / 493.3 MB, free: 2.309 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.106e-05/0.1498, allocations: 32.03 kB / 493.4 MB, free: 2.277 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.1498, allocations: 12 kB / 493.4 MB, free: 2.266 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002057/0.15, allocations: 223 kB / 493.6 MB, free: 2.047 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.15, allocations: 0 / 493.6 MB, free: 2.047 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006425/0.1507, allocations: 163.8 kB / 493.7 MB, free: 1.887 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (20): * Single equations (assignments): 18 * 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 {(1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009532/0.1516, allocations: 1.16 MB / 494.9 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007712/0.1524, allocations: 0.5153 MB / 495.4 MB, free: 164 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1524, allocations: 0 / 495.4 MB, free: 164 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004476/0.1529, allocations: 346.5 kB / 495.8 MB, free: 15.81 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005992/0.1535, allocations: 53.84 kB / 495.8 MB, free: 15.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004575/0.1581, allocations: 4.172 MB / 500 MB, free: 11.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000446/0.1585, allocations: 0.8863 MB / 0.4891 GB, free: 10.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001713/0.1587, allocations: 66.91 kB / 0.4892 GB, free: 10.37 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001434/0.1589, allocations: 111.4 kB / 0.4893 GB, free: 10.26 MB / 382.1 MB Notification: Performance of SimCode: time 1.092e-06/0.1589, allocations: 0 / 0.4893 GB, free: 10.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01808/0.177, allocations: 7.157 MB / 0.4963 GB, free: 3.23 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001769/0.1772, allocations: 230.4 kB / 0.4965 GB, free: 2.977 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.836/2.013, allocations: 0 / 0.4965 GB, free: 2.977 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_d.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop_d.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches