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.001591/0.001591, allocations: 110.8 kB / 17.06 MB, free: 5.977 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.001864/0.001864, allocations: 200 kB / 18.01 MB, free: 5.059 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.356/1.356, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.174/0.174, allocations: 38.04 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001394, allocations: 63.91 kB / 457.7 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3136/0.315, allocations: 58.05 MB / 0.5036 GB, free: 7.418 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop): time 0.006997/0.3221, allocations: 7.414 MB / 0.5109 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00523/0.3273, allocations: 4.393 MB / 0.5151 GB, free: 15.14 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003968/0.3278, allocations: 15.97 kB / 0.5152 GB, free: 15.14 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002562/0.3303, allocations: 1.035 MB / 0.5162 GB, free: 14.51 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00274/0.3331, allocations: 1.202 MB / 0.5173 GB, free: 13.88 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009844/0.3341, allocations: 316.6 kB / 0.5176 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002014/0.3361, allocations: 1.408 MB / 0.519 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001159/0.3373, allocations: 0.6534 MB / 0.5197 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001024/0.3383, allocations: 0.62 MB / 0.5203 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001237/0.3396, allocations: 0.6779 MB / 0.5209 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001433/0.3397, allocations: 62.66 kB / 0.521 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002892/0.3426, allocations: 1.328 MB / 0.5223 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006032/0.3432, allocations: 477.2 kB / 0.5227 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004906/0.3437, allocations: 448.8 kB / 0.5232 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002489/0.3462, allocations: 1.451 MB / 0.5246 GB, free: 10.88 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3463, allocations: 4.609 kB / 0.5246 GB, free: 10.88 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3463, allocations: 0 / 0.5246 GB, free: 10.88 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.768e-05/0.3463, allocations: 0 / 0.5246 GB, free: 10.88 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002179/0.3485, allocations: 1.124 MB / 0.5257 GB, free: 10.08 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.742e-05/0.3486, allocations: 13.55 kB / 0.5257 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001757/0.3488, allocations: 128.2 kB / 0.5258 GB, free: 9.988 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003519/0.3523, allocations: 390.2 kB / 0.5262 GB, free: 9.926 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.3533, allocations: 490.1 kB / 0.5267 GB, free: 9.582 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.83e-05/0.3534, allocations: 54.23 kB / 0.5267 GB, free: 9.559 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001498/0.3536, allocations: 78.78 kB / 0.5268 GB, free: 9.527 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002272/0.3558, allocations: 1.178 MB / 0.5279 GB, free: 9.062 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.942e-05/0.3559, allocations: 2.453 kB / 0.5279 GB, free: 9.062 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.54e-05/0.356, allocations: 30.64 kB / 0.528 GB, free: 9.039 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.836e-05/0.3561, allocations: 77.75 kB / 0.528 GB, free: 9.027 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002111/0.3582, allocations: 1.236 MB / 0.5293 GB, free: 8.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006539/0.3647, allocations: 3.497 MB / 0.5327 GB, free: 6.348 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001671/0.3664, allocations: 1.058 MB / 0.5337 GB, free: 5.789 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009172/0.3674, allocations: 0.6601 MB / 0.5343 GB, free: 5.453 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.817e-05/0.3675, allocations: 18.72 kB / 0.5344 GB, free: 5.445 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/0.3675, allocations: 46.94 kB / 0.5344 GB, free: 5.395 MB / 398.1 MB Notification: Performance of pre-optimization done (n=91): time 4.268e-06/0.3675, allocations: 1.125 kB / 0.5344 GB, free: 5.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=92): time 0.006849/0.3744, allocations: 3.095 MB / 0.5374 GB, free: 3.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.476e-05/0.3744, allocations: 87.8 kB / 0.5375 GB, free: 3.652 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004487/0.3749, allocations: 358.9 kB / 0.5379 GB, free: 3.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.109e-05/0.375, allocations: 44.02 kB / 0.5379 GB, free: 3.383 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002378/0.3752, allocations: 319.2 kB / 0.5382 GB, free: 3.098 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003278/0.3755, allocations: 312 kB / 0.5385 GB, free: 2.828 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000285/0.3758, allocations: 164.1 kB / 0.5387 GB, free: 2.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.376, allocations: 369.6 kB / 0.539 GB, free: 2.375 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006798/0.3767, allocations: 466.9 kB / 0.5395 GB, free: 2.156 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007921/0.3775, allocations: 0.5696 MB / 0.54 GB, free: 1.816 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001555/0.3791, allocations: 1.112 MB / 0.5411 GB, free: 1.211 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.3791, allocations: 1.469 kB / 0.5411 GB, free: 1.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002532/0.3816, allocations: 1.473 MB / 0.5425 GB, free: 468 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.3816, allocations: 8.656 kB / 0.5425 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.3817, allocations: 4 kB / 0.5426 GB, free: 456 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009357/0.3826, allocations: 334.2 kB / 0.5429 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007508/0.3834, allocations: 183.7 kB / 0.543 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005673/0.389, allocations: 4.19 MB / 0.5471 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006062/0.3897, allocations: 51.95 kB / 0.5472 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.724e-05/0.3898, allocations: 35.98 kB / 0.5472 GB, free: 11.49 MB / 414.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.0004572/0.3902, allocations: 289.6 kB / 0.5475 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.3904, allocations: 55.34 kB / 0.5475 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002706/0.3931, allocations: 1.571 MB / 0.5491 GB, free: 9.559 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.306e-05/0.3931, allocations: 12 kB / 0.5491 GB, free: 9.547 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.3931, allocations: 4 kB / 0.5491 GB, free: 9.543 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.3931, allocations: 3.984 kB / 0.5491 GB, free: 9.539 MB / 414.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.005403/0.3985, allocations: 3.035 MB / 0.5521 GB, free: 6.379 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.3986, allocations: 4 kB / 0.5521 GB, free: 6.375 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006409/0.3992, allocations: 163.8 kB / 0.5522 GB, free: 6.215 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008054/0.4, allocations: 285 kB / 0.5525 GB, free: 5.934 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.455e-05/0.4001, allocations: 27.98 kB / 0.5525 GB, free: 5.906 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00511/0.4052, allocations: 3.909 MB / 0.5563 GB, free: 1.848 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.4052, allocations: 7.938 kB / 0.5563 GB, free: 1.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002587/0.4078, allocations: 1.598 MB / 0.5579 GB, free: 180 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002044/0.4081, allocations: 140.4 kB / 0.558 GB, free: 20 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.4082, allocations: 24.14 kB / 0.5581 GB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004761/0.4087, allocations: 43.89 kB / 0.5581 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/0.4088, allocations: 84.83 kB / 0.5582 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.269e-05/0.4089, allocations: 40 kB / 0.5582 GB, free: 15.82 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002931/0.4092, allocations: 259.1 kB / 0.5585 GB, free: 15.57 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4092, allocations: 0 / 0.5585 GB, free: 15.57 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001041/0.4102, allocations: 308 kB / 0.5588 GB, free: 15.27 MB / 430.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.002684/0.4129, allocations: 2.16 MB / 0.5609 GB, free: 13.04 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002219/0.4152, allocations: 1.405 MB / 0.5623 GB, free: 11.62 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.4152, allocations: 0 / 0.5623 GB, free: 11.62 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001179/0.4164, allocations: 0.8515 MB / 0.5631 GB, free: 10.75 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008442/0.4172, allocations: 102.3 kB / 0.5632 GB, free: 10.66 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01057/0.4278, allocations: 7.529 MB / 0.5705 GB, free: 2.887 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007336/0.4286, allocations: 1.072 MB / 0.5716 GB, free: 1.789 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005795/0.4292, allocations: 176.6 kB / 0.5717 GB, free: 1.617 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005863/0.4298, allocations: 267.3 kB / 0.572 GB, free: 1.355 MB / 430.1 MB Notification: Performance of SimCode: time 9.51e-07/0.4298, allocations: 0 / 0.572 GB, free: 1.355 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05907/0.4889, allocations: 16.81 MB / 0.5884 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.77, allocations: 9.312 kB / 0.5884 GB, free: 0.6602 MB / 446.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