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.00156/0.00156, allocations: 109.4 kB / 17.06 MB, free: 5.965 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.001815/0.001815, allocations: 200 kB / 18.01 MB, free: 5.047 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.4/1.4, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1797/0.1797, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 63.89 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3325, allocations: 58.06 MB / 0.5036 GB, free: 7.406 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.007539/0.3401, allocations: 7.547 MB / 0.511 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006407/0.3466, allocations: 4.168 MB / 0.5151 GB, free: 15.19 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005496/0.3472, allocations: 12.62 kB / 0.5151 GB, free: 15.19 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002961/0.3502, allocations: 1.032 MB / 0.5161 GB, free: 14.56 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003105/0.3533, allocations: 1.113 MB / 0.5172 GB, free: 13.97 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001085/0.3544, allocations: 301 kB / 0.5175 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002363/0.3567, allocations: 1.369 MB / 0.5188 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001135/0.3579, allocations: 466.4 kB / 0.5193 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001608/0.3595, allocations: 0.5733 MB / 0.5198 GB, free: 12.78 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001334/0.3609, allocations: 0.5752 MB / 0.5204 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000141/0.361, allocations: 35.16 kB / 0.5204 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002314/0.3633, allocations: 0.9861 MB / 0.5214 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006062/0.364, allocations: 280.4 kB / 0.5216 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005755/0.3645, allocations: 247.8 kB / 0.5219 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001897/0.3664, allocations: 0.8135 MB / 0.5227 GB, free: 11.6 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3665, allocations: 2.344 kB / 0.5227 GB, free: 11.6 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3665, allocations: 0 / 0.5227 GB, free: 11.6 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.206e-06/0.3665, allocations: 0 / 0.5227 GB, free: 11.6 MB / 398.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.001241/0.3677, allocations: 0.8204 MB / 0.5235 GB, free: 10.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.3678, allocations: 13.48 kB / 0.5235 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001021/0.3679, allocations: 83.61 kB / 0.5236 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001591/0.3695, allocations: 135.4 kB / 0.5237 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005985/0.3701, allocations: 336 kB / 0.524 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.301e-05/0.3701, allocations: 33.86 kB / 0.524 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.902e-05/0.3702, allocations: 37.11 kB / 0.5241 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009686/0.3712, allocations: 0.5881 MB / 0.5247 GB, free: 10.19 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.3712, allocations: 3.938 kB / 0.5247 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.751e-05/0.3713, allocations: 21.27 kB / 0.5247 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.857e-05/0.3713, allocations: 33.34 kB / 0.5247 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006827/0.372, allocations: 383.7 kB / 0.5251 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002886/0.3749, allocations: 2.593 MB / 0.5276 GB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007032/0.3756, allocations: 425.7 kB / 0.528 GB, free: 7.715 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003019/0.376, allocations: 209 kB / 0.5282 GB, free: 7.629 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.376, allocations: 7.609 kB / 0.5282 GB, free: 7.625 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.376, allocations: 45.8 kB / 0.5283 GB, free: 7.574 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.044e-06/0.376, allocations: 0 / 0.5283 GB, free: 7.574 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.00184/0.3779, allocations: 0.7664 MB / 0.529 GB, free: 7.234 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.424e-05/0.378, allocations: 107.6 kB / 0.5291 GB, free: 7.109 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003931/0.3784, allocations: 324.7 kB / 0.5294 GB, free: 6.941 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.3784, allocations: 30.64 kB / 0.5295 GB, free: 6.906 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001949/0.3786, allocations: 251.4 kB / 0.5297 GB, free: 6.695 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.3787, allocations: 125.3 kB / 0.5298 GB, free: 6.598 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.3789, allocations: 83.94 kB / 0.5299 GB, free: 6.543 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.379, allocations: 354.8 kB / 0.5302 GB, free: 6.207 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002143/0.3792, allocations: 128.6 kB / 0.5304 GB, free: 6.168 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003227/0.3796, allocations: 283.1 kB / 0.5306 GB, free: 5.934 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005683/0.3801, allocations: 455.7 kB / 0.5311 GB, free: 5.617 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.3801, allocations: 2.812 kB / 0.5311 GB, free: 5.617 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008554/0.381, allocations: 0.5579 MB / 0.5316 GB, free: 5.379 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.381, allocations: 8.062 kB / 0.5316 GB, free: 5.379 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.381, allocations: 5.594 kB / 0.5316 GB, free: 5.379 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003563/0.3814, allocations: 121 kB / 0.5317 GB, free: 5.344 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002637/0.3817, allocations: 75.59 kB / 0.5318 GB, free: 5.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002809/0.3845, allocations: 2.569 MB / 0.5343 GB, free: 3.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002849/0.3848, allocations: 40.39 kB / 0.5344 GB, free: 3.293 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.116e-05/0.3848, allocations: 18.91 kB / 0.5344 GB, free: 3.289 MB / 398.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.0002623/0.3851, allocations: 199.8 kB / 0.5346 GB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.527e-05/0.3852, allocations: 41.8 kB / 0.5346 GB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.426e-05/0.3853, allocations: 47.62 kB / 0.5346 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.3853, allocations: 3.156 kB / 0.5347 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.592e-05/0.3853, allocations: 7.625 kB / 0.5347 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.3853, allocations: 5.938 kB / 0.5347 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001393/0.3867, allocations: 0.9466 MB / 0.5356 GB, free: 2.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.3868, allocations: 0.9062 kB / 0.5356 GB, free: 2.488 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001457/0.3869, allocations: 39.52 kB / 0.5356 GB, free: 2.477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002506/0.3872, allocations: 108.3 kB / 0.5357 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.158e-05/0.3872, allocations: 6.219 kB / 0.5357 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002465/0.3897, allocations: 2.569 MB / 0.5382 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3897, allocations: 1.406 kB / 0.5382 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007547/0.3905, allocations: 0.6333 MB / 0.5389 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.3906, allocations: 109.5 kB / 0.539 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.362e-05/0.3906, allocations: 10.53 kB / 0.539 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001874/0.3908, allocations: 10.39 kB / 0.539 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.662e-05/0.3909, allocations: 23.56 kB / 0.539 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.838e-05/0.3909, allocations: 10.62 kB / 0.539 GB, free: 15.6 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002247/0.3911, allocations: 224.7 kB / 0.5392 GB, free: 15.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.364e-06/0.3911, allocations: 0 / 0.5392 GB, free: 15.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007339/0.3919, allocations: 169.1 kB / 0.5394 GB, free: 15.42 MB / 414.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.000948/0.3928, allocations: 1.16 MB / 0.5405 GB, free: 14.44 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000845/0.3937, allocations: 0.5206 MB / 0.541 GB, free: 14.13 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3937, allocations: 1.5 kB / 0.541 GB, free: 14.13 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004393/0.3942, allocations: 352.5 kB / 0.5414 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005406/0.3947, allocations: 60.19 kB / 0.5414 GB, free: 13.85 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004579/0.3993, allocations: 4.009 MB / 0.5453 GB, free: 10.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004568/0.3998, allocations: 0.8792 MB / 0.5462 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001709/0.3999, allocations: 70.81 kB / 0.5463 GB, free: 10.05 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000161/0.4001, allocations: 114.5 kB / 0.5464 GB, free: 9.957 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4001, allocations: 0 / 0.5464 GB, free: 9.957 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03187/0.432, allocations: 7.653 MB / 0.5539 GB, free: 4.062 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.504/9.936, allocations: 17.55 kB / 0.5539 GB, free: 4.051 MB / 414.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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop_d.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches