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.0009388/0.0009388, allocations: 91.42 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.001143/0.001143, allocations: 180.7 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.201/1.201, allocations: 223.2 MB / 241.6 MB, free: 14.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1566/0.1566, allocations: 38.09 MB / 330.8 MB, free: 8.551 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002692/0.0002692, allocations: 8 kB / 400.8 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07578/0.07606, allocations: 59.17 MB / 460 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.006058/0.08215, allocations: 7.314 MB / 467.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004151/0.08632, allocations: 4.164 MB / 471.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001587/0.08649, allocations: 15.94 kB / 471.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002463/0.08674, allocations: 131.1 kB / 471.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00143/0.08818, allocations: 1.055 MB / 472.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004358/0.08863, allocations: 271.4 kB / 472.9 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001829/0.09047, allocations: 2.561 MB / 475.5 MB, free: 7.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003907/0.09087, allocations: 345.9 kB / 475.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000447/0.09133, allocations: 461.6 kB / 476.3 MB, free: 6.598 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005733/0.09191, allocations: 0.6034 MB / 476.9 MB, free: 5.992 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.854e-05/0.09195, allocations: 20 kB / 476.9 MB, free: 5.973 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001313/0.09327, allocations: 1.243 MB / 478.1 MB, free: 4.727 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002161/0.0935, allocations: 255.4 kB / 478.4 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002074/0.09371, allocations: 248.5 kB / 478.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008029/0.09452, allocations: 0.88 MB / 479.5 MB, free: 3.344 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.09454, allocations: 4 kB / 479.5 MB, free: 3.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.09454, allocations: 0 / 479.5 MB, free: 3.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.09455, allocations: 0 / 479.5 MB, free: 3.34 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.0008311/0.09539, allocations: 0.726 MB / 480.2 MB, free: 2.566 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.09543, allocations: 12.03 kB / 480.3 MB, free: 2.555 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.235e-05/0.09552, allocations: 74.7 kB / 480.3 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001372/0.09689, allocations: 132.3 kB / 480.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003241/0.09723, allocations: 330.4 kB / 480.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.425e-05/0.09726, allocations: 29.36 kB / 480.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.808e-05/0.09731, allocations: 40.36 kB / 480.8 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006922/0.09801, allocations: 0.5828 MB / 481.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.09803, allocations: 3.938 kB / 481.4 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.354e-05/0.09807, allocations: 19.98 kB / 481.5 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.287e-05/0.09813, allocations: 36.62 kB / 481.5 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005014/0.09863, allocations: 382.1 kB / 481.9 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00203/0.1007, allocations: 2.611 MB / 484.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005632/0.1012, allocations: 427.7 kB / 484.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000255/0.1015, allocations: 214.6 kB / 485.1 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.338e-05/0.1015, allocations: 4.531 kB / 485.1 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/0.1016, allocations: 38.48 kB / 485.1 MB, free: 13.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.493e-06/0.1016, allocations: 0 / 485.1 MB, free: 13.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.001496/0.1031, allocations: 0.7722 MB / 485.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.773e-05/0.1031, allocations: 110.8 kB / 486 MB, free: 12.44 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002637/0.1034, allocations: 320.5 kB / 486.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.1034, allocations: 29.7 kB / 486.4 MB, free: 12.08 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.1036, allocations: 247.8 kB / 486.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.172e-05/0.1036, allocations: 118.3 kB / 486.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.827e-05/0.1037, allocations: 49.64 kB / 486.8 MB, free: 11.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.1038, allocations: 342.8 kB / 487.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000172/0.104, allocations: 132.9 kB / 487.2 MB, free: 11.19 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002468/0.1042, allocations: 287.3 kB / 487.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000461/0.1047, allocations: 452.2 kB / 488 MB, free: 10.33 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1047, allocations: 4 kB / 488 MB, free: 10.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0007396/0.1055, allocations: 0.5618 MB / 488.5 MB, free: 9.758 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.1055, allocations: 8 kB / 488.5 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/0.1055, allocations: 4 kB / 488.5 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002741/0.1058, allocations: 113.3 kB / 488.6 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002129/0.106, allocations: 83.84 kB / 488.7 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002063/0.1081, allocations: 2.341 MB / 491.1 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001811/0.1083, allocations: 39.53 kB / 491.1 MB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.316e-05/0.1083, allocations: 23.98 kB / 491.1 MB, free: 7.004 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.0001716/0.1085, allocations: 215.5 kB / 491.3 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.82e-05/0.1086, allocations: 35.53 kB / 491.4 MB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.994e-05/0.1087, allocations: 47.95 kB / 491.4 MB, free: 6.703 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.1087, allocations: 4 kB / 491.4 MB, free: 6.699 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1087, allocations: 0 / 491.4 MB, free: 6.699 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.1087, allocations: 4 kB / 491.4 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/0.1097, allocations: 0.9455 MB / 492.4 MB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-06/0.1098, allocations: 4 kB / 492.4 MB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001254/0.1099, allocations: 39.97 kB / 492.4 MB, free: 5.641 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002103/0.1101, allocations: 100.9 kB / 492.5 MB, free: 5.539 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.1101, allocations: 8 kB / 492.5 MB, free: 5.531 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001981/0.1121, allocations: 2.347 MB / 494.9 MB, free: 3.035 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.1121, allocations: 7.969 kB / 494.9 MB, free: 3.027 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006177/0.1128, allocations: 0.6184 MB / 495.5 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.263e-05/0.1128, allocations: 116.7 kB / 495.6 MB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.402e-05/0.1129, allocations: 11.98 kB / 495.6 MB, free: 2.234 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001632/0.1131, allocations: 8.188 kB / 495.6 MB, free: 2.227 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.274e-05/0.1131, allocations: 27.91 kB / 495.7 MB, free: 2.199 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.276e-05/0.1131, allocations: 7.938 kB / 495.7 MB, free: 2.191 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001765/0.1133, allocations: 227 kB / 495.9 MB, free: 1.969 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1133, allocations: 0 / 495.9 MB, free: 1.969 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005271/0.1138, allocations: 155.8 kB / 496 MB, free: 1.816 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.0008243/0.1147, allocations: 1.167 MB / 497.2 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006694/0.1154, allocations: 0.5268 MB / 497.7 MB, free: 72 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.1154, allocations: 4 kB / 497.7 MB, free: 68 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003968/0.1158, allocations: 342.4 kB / 498.1 MB, free: 15.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005077/0.1163, allocations: 54.41 kB / 498.1 MB, free: 15.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003846/0.1201, allocations: 4.184 MB / 0.4905 GB, free: 11.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003622/0.1205, allocations: 0.8824 MB / 0.4914 GB, free: 10.34 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001516/0.1207, allocations: 70.91 kB / 0.4915 GB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.1208, allocations: 119.4 kB / 0.4916 GB, free: 10.15 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1208, allocations: 0 / 0.4916 GB, free: 10.15 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3451/0.4659, allocations: 7.026 MB / 0.4984 GB, free: 3.281 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002297/0.4662, allocations: 230.1 kB / 0.4987 GB, free: 3.027 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.322/2.788, allocations: 0 / 0.4987 GB, free: 3.027 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