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.001339/0.001343, allocations: 106 kB / 16.62 MB, free: 6.812 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.001518/0.001518, allocations: 193.9 kB / 17.55 MB, free: 5.953 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.28/1.28, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1727/0.1727, allocations: 38.03 MB / 329.4 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 61.09 kB / 398.4 MB, free: 34.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09264/0.09387, allocations: 58.06 MB / 456.5 MB, free: 8.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop): time 0.008601/0.1025, allocations: 7.611 MB / 464.1 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005584/0.1081, allocations: 4.424 MB / 468.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004776/0.1086, allocations: 19.94 kB / 468.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002423/0.1111, allocations: 0.9733 MB / 469.5 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002652/0.1138, allocations: 1.133 MB / 470.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007675/0.1146, allocations: 295.3 kB / 470.9 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001594/0.1162, allocations: 1.399 MB / 472.3 MB, free: 8.414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00107/0.1172, allocations: 0.7431 MB / 473 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009642/0.1182, allocations: 0.6069 MB / 473.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009724/0.1192, allocations: 0.7399 MB / 474.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001335/0.1193, allocations: 67.94 kB / 474.5 MB, free: 6.246 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002079/0.1214, allocations: 1.337 MB / 475.8 MB, free: 4.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004927/0.1219, allocations: 482.9 kB / 476.3 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000531/0.1225, allocations: 445.9 kB / 476.7 MB, free: 3.996 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002099/0.1246, allocations: 1.539 MB / 478.2 MB, free: 2.453 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1246, allocations: 0 / 478.2 MB, free: 2.453 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1246, allocations: 0 / 478.2 MB, free: 2.453 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.889e-05/0.1246, allocations: 0 / 478.2 MB, free: 2.453 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.001865/0.1265, allocations: 1.132 MB / 479.4 MB, free: 1.273 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.1266, allocations: 15.89 kB / 479.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001589/0.1267, allocations: 127.2 kB / 479.5 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003053/0.1298, allocations: 395.4 kB / 479.9 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007151/0.1305, allocations: 478.6 kB / 480.4 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.439e-05/0.1306, allocations: 54.36 kB / 480.4 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/0.1307, allocations: 72.3 kB / 480.5 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001789/0.1325, allocations: 1.187 MB / 481.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.065e-05/0.1326, allocations: 3.906 kB / 481.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.239e-05/0.1326, allocations: 28 kB / 481.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.667e-05/0.1327, allocations: 69.95 kB / 481.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001807/0.1345, allocations: 1.237 MB / 483 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005325/0.1399, allocations: 3.515 MB / 486.5 MB, free: 9.938 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001686/0.1416, allocations: 1.061 MB / 487.6 MB, free: 8.863 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008688/0.1425, allocations: 0.6528 MB / 488.2 MB, free: 8.207 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.028e-05/0.1426, allocations: 20.97 kB / 488.3 MB, free: 8.184 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.2e-05/0.1426, allocations: 51.56 kB / 488.3 MB, free: 8.125 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 3.056e-06/0.1426, allocations: 0 / 488.3 MB, free: 8.125 MB / 366.1 MB Notification: Performance of matching and sorting (n=92): time 0.006413/0.149, allocations: 3.087 MB / 491.4 MB, free: 5.008 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/0.1491, allocations: 86.11 kB / 491.5 MB, free: 4.906 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003962/0.1495, allocations: 365.5 kB / 491.8 MB, free: 4.543 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.644e-05/0.1496, allocations: 41.7 kB / 491.9 MB, free: 4.496 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001899/0.1498, allocations: 316.2 kB / 492.2 MB, free: 4.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002723/0.1501, allocations: 315.4 kB / 492.5 MB, free: 3.867 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002403/0.1503, allocations: 158.5 kB / 492.7 MB, free: 3.707 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1504, allocations: 366.8 kB / 493 MB, free: 3.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006557/0.1511, allocations: 469.7 kB / 493.5 MB, free: 2.879 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007251/0.1518, allocations: 0.5735 MB / 494 MB, free: 2.281 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001468/0.1533, allocations: 1.109 MB / 495.2 MB, free: 1.141 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.1533, allocations: 0 / 495.2 MB, free: 1.141 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002354/0.1557, allocations: 1.473 MB / 496.6 MB, free: 15.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.1557, allocations: 8 kB / 496.6 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.1557, allocations: 4 kB / 496.6 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009342/0.1567, allocations: 346.3 kB / 497 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006737/0.1574, allocations: 179.7 kB / 497.2 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005258/0.1626, allocations: 4.18 MB / 0.4896 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004838/0.1631, allocations: 43.95 kB / 0.4896 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.337e-05/0.1632, allocations: 43.92 kB / 0.4897 GB, free: 10.7 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.0004/0.1636, allocations: 294.3 kB / 0.49 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.1638, allocations: 59.34 kB / 0.49 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00257/0.1663, allocations: 1.567 MB / 0.4915 GB, free: 8.766 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.1664, allocations: 8 kB / 0.4915 GB, free: 8.758 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.1664, allocations: 12 kB / 0.4916 GB, free: 8.746 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.1664, allocations: 3.984 kB / 0.4916 GB, free: 8.742 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.005111/0.1715, allocations: 3.032 MB / 0.4945 GB, free: 5.578 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.1715, allocations: 8.062 kB / 0.4945 GB, free: 5.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000612/0.1721, allocations: 163.7 kB / 0.4947 GB, free: 5.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000792/0.173, allocations: 292.5 kB / 0.495 GB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.43e-05/0.173, allocations: 35.97 kB / 0.495 GB, free: 5.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004832/0.1779, allocations: 3.9 MB / 0.4988 GB, free: 1.039 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.1779, allocations: 7.938 kB / 0.4988 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1887/0.3666, allocations: 1.592 MB / 0.5004 GB, free: 55.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002311/0.3668, allocations: 145.6 kB / 0.5005 GB, free: 55.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.3669, allocations: 22.02 kB / 0.5005 GB, free: 55.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004386/0.3674, allocations: 42.73 kB / 0.5006 GB, free: 55.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001728/0.3676, allocations: 81.95 kB / 0.5006 GB, free: 55.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.005e-05/0.3676, allocations: 38.33 kB / 0.5007 GB, free: 55.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002509/0.3679, allocations: 257.7 kB / 0.5009 GB, free: 55.44 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3679, allocations: 2.219 kB / 0.5009 GB, free: 55.44 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009128/0.3688, allocations: 307.9 kB / 0.5012 GB, free: 55.44 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.002523/0.3714, allocations: 2.159 MB / 0.5033 GB, free: 54.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002867/0.3742, allocations: 1.678 MB / 0.505 GB, free: 54.15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/0.3743, allocations: 1.25 kB / 0.505 GB, free: 54.15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.3755, allocations: 0.8401 MB / 0.5058 GB, free: 53.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007241/0.3762, allocations: 110.3 kB / 0.5059 GB, free: 53.74 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01095/0.3871, allocations: 7.949 MB / 0.5137 GB, free: 49.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000805/0.388, allocations: 1.069 MB / 0.5147 GB, free: 48.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006265/0.3886, allocations: 187.2 kB / 0.5149 GB, free: 48.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003965/0.389, allocations: 257.6 kB / 0.5151 GB, free: 48.67 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.389, allocations: 0 / 0.5151 GB, free: 48.67 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02943/0.4185, allocations: 16.14 MB / 0.5309 GB, free: 40.32 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001604/0.4187, allocations: 232.1 kB / 0.5311 GB, free: 40.06 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.051/2.469, allocations: 0 / 0.5311 GB, free: 40.06 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches