Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.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_dq0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_dq0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq0",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.00116/0.00116, allocations: 105.6 kB / 17.06 MB, free: 6.027 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.001017/0.001017, allocations: 195 kB / 18 MB, free: 5.105 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.335/1.335, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1993/0.1993, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 63.91 kB / 457.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3348/0.336, allocations: 58.07 MB / 0.5036 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq0): time 0.007468/0.3435, allocations: 7.423 MB / 0.5109 GB, free: 2.281 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005659/0.3492, allocations: 4.442 MB / 0.5152 GB, free: 15.18 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006847/0.3499, allocations: 12.19 kB / 0.5152 GB, free: 15.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002825/0.3527, allocations: 1.037 MB / 0.5162 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004076/0.3568, allocations: 1.27 MB / 0.5175 GB, free: 13.91 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00139/0.3582, allocations: 348.6 kB / 0.5178 GB, free: 13.74 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002246/0.3605, allocations: 1.401 MB / 0.5192 GB, free: 13.16 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002305/0.3628, allocations: 0.8064 MB / 0.52 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001915/0.3648, allocations: 0.6423 MB / 0.5206 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001295/0.3661, allocations: 0.74 MB / 0.5213 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002254/0.3663, allocations: 78.59 kB / 0.5214 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004641/0.371, allocations: 1.519 MB / 0.5229 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001509/0.3725, allocations: 0.601 MB / 0.5235 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001829/0.3743, allocations: 0.5629 MB / 0.524 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00597/0.3803, allocations: 1.886 MB / 0.5259 GB, free: 10.54 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.013e-05/0.3804, allocations: 0 / 0.5259 GB, free: 10.54 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3804, allocations: 0 / 0.5259 GB, free: 10.54 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.607e-05/0.3805, allocations: 1.531 kB / 0.5259 GB, free: 10.54 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: 267 * Number of variables: 267 Notification: Performance of Generate backend data structure: time 0.004993/0.3855, allocations: 1.331 MB / 0.5272 GB, free: 9.637 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.3856, allocations: 21.92 kB / 0.5272 GB, free: 9.625 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004516/0.386, allocations: 157.3 kB / 0.5273 GB, free: 9.523 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006401/0.3924, allocations: 0.539 MB / 0.5279 GB, free: 9.441 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001728/0.3942, allocations: 0.5653 MB / 0.5284 GB, free: 9.047 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.604e-05/0.3943, allocations: 65.86 kB / 0.5285 GB, free: 9.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003923/0.3947, allocations: 84.97 kB / 0.5286 GB, free: 8.992 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003192/0.3979, allocations: 1.516 MB / 0.53 GB, free: 8.156 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.26e-05/0.398, allocations: 1.406 kB / 0.53 GB, free: 8.156 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001193/0.3981, allocations: 35.08 kB / 0.5301 GB, free: 8.129 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001285/0.3982, allocations: 99.16 kB / 0.5302 GB, free: 8.102 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002674/0.4009, allocations: 1.549 MB / 0.5317 GB, free: 7.367 MB / 398.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 preOpt removeSimpleEquations (simulation): time 0.0117/0.4126, allocations: 4.88 MB / 0.5364 GB, free: 3.898 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002693/0.4153, allocations: 1.19 MB / 0.5376 GB, free: 3.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001593/0.417, allocations: 0.7652 MB / 0.5383 GB, free: 2.883 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.531e-05/0.4171, allocations: 21.28 kB / 0.5384 GB, free: 2.875 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.816e-05/0.4171, allocations: 47.16 kB / 0.5384 GB, free: 2.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=107): time 5.26e-06/0.4171, allocations: 1.25 kB / 0.5384 GB, free: 2.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=108): time 0.01163/0.4288, allocations: 3.681 MB / 0.542 GB, free: 0.793 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.731e-05/0.4289, allocations: 89.05 kB / 0.5421 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009964/0.4299, allocations: 476 kB / 0.5425 GB, free: 328 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001345/0.4301, allocations: 41.7 kB / 0.5426 GB, free: 280 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004145/0.4305, allocations: 419.7 kB / 0.543 GB, free: 15.85 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004109/0.4309, allocations: 378.5 kB / 0.5433 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003088/0.4313, allocations: 194.9 kB / 0.5435 GB, free: 15.28 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.4314, allocations: 386.8 kB / 0.5439 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007914/0.4322, allocations: 0.5335 MB / 0.5444 GB, free: 14.36 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009231/0.4332, allocations: 0.7539 MB / 0.5452 GB, free: 13.53 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00202/0.4352, allocations: 1.4 MB / 0.5465 GB, free: 12.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.553e-06/0.4352, allocations: 4 kB / 0.5465 GB, free: 12.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.003212/0.4384, allocations: 1.806 MB / 0.5483 GB, free: 10.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.4385, allocations: 8 kB / 0.5483 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.4385, allocations: 7.984 kB / 0.5483 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001122/0.4396, allocations: 413.6 kB / 0.5487 GB, free: 9.801 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009088/0.4405, allocations: 231.6 kB / 0.5489 GB, free: 9.574 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006969/0.4475, allocations: 6.064 MB / 0.5548 GB, free: 3.211 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/0.4486, allocations: 71.92 kB / 0.5549 GB, free: 3.141 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.038e-05/0.4487, allocations: 47.92 kB / 0.555 GB, free: 3.094 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (105): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,26,100.0%), (1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006549/0.4493, allocations: 369.4 kB / 0.5553 GB, free: 2.723 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001443/0.4495, allocations: 71.16 kB / 0.5554 GB, free: 2.652 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003026/0.4525, allocations: 1.81 MB / 0.5572 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/0.4526, allocations: 12 kB / 0.5572 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/0.4526, allocations: 19.86 kB / 0.5572 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.4526, allocations: 3.984 kB / 0.5572 GB, free: 0.793 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.005778/0.4584, allocations: 3.457 MB / 0.5606 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.775e-06/0.4584, allocations: 8.094 kB / 0.5606 GB, free: 13.19 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007393/0.4591, allocations: 183.8 kB / 0.5607 GB, free: 13.01 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009201/0.4601, allocations: 353.3 kB / 0.5611 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.538e-05/0.4602, allocations: 31.94 kB / 0.5611 GB, free: 12.63 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006835/0.467, allocations: 5.786 MB / 0.5668 GB, free: 6.551 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.4671, allocations: 4 kB / 0.5668 GB, free: 6.547 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003108/0.4702, allocations: 1.829 MB / 0.5686 GB, free: 4.648 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002763/0.4705, allocations: 160.1 kB / 0.5687 GB, free: 4.473 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.4706, allocations: 28 kB / 0.5687 GB, free: 4.445 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005263/0.4711, allocations: 47.89 kB / 0.5688 GB, free: 4.398 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/0.4713, allocations: 88.81 kB / 0.5689 GB, free: 4.312 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.576e-05/0.4714, allocations: 39.98 kB / 0.5689 GB, free: 4.273 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003919/0.4718, allocations: 331.1 kB / 0.5692 GB, free: 3.949 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4718, allocations: 0 / 0.5692 GB, free: 3.949 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001284/0.4731, allocations: 399.9 kB / 0.5696 GB, free: 3.559 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 (91): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,7,100.0%), (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.003074/0.4762, allocations: 2.391 MB / 0.5719 GB, free: 1.09 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00278/0.479, allocations: 1.767 MB / 0.5737 GB, free: 15.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/0.479, allocations: 4 kB / 0.5737 GB, free: 15.29 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001453/0.4804, allocations: 1.073 MB / 0.5747 GB, free: 14.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008624/0.4813, allocations: 127.4 kB / 0.5748 GB, free: 14.07 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01349/0.4948, allocations: 9.108 MB / 0.5837 GB, free: 4.602 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009794/0.4958, allocations: 1.171 MB / 0.5849 GB, free: 3.402 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006437/0.4965, allocations: 237.4 kB / 0.5851 GB, free: 3.168 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005333/0.497, allocations: 343.2 kB / 0.5854 GB, free: 2.832 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/0.497, allocations: 0 / 0.5854 GB, free: 2.832 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04947/0.5465, allocations: 20.81 MB / 0.6057 GB, free: 14.16 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/11.1, allocations: 11.31 kB / 0.6058 GB, free: 14.15 MB / 478.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq0_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq0.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches