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.001153/0.001153, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.001071/0.001072, allocations: 200 kB / 18.01 MB, free: 5.055 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.36/1.36, 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.1838/0.1838, allocations: 38.04 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 67.89 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.3441, allocations: 58.05 MB / 0.5036 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq0): time 0.007063/0.3512, allocations: 7.426 MB / 0.5109 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005646/0.3569, allocations: 4.444 MB / 0.5152 GB, free: 15.18 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005292/0.3575, allocations: 16.19 kB / 0.5152 GB, free: 15.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00301/0.3606, allocations: 1.04 MB / 0.5163 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003907/0.3645, allocations: 1.267 MB / 0.5175 GB, free: 13.91 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001458/0.366, allocations: 343.9 kB / 0.5178 GB, free: 13.74 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003668/0.3697, allocations: 1.405 MB / 0.5192 GB, free: 13.16 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001569/0.3713, allocations: 0.8024 MB / 0.52 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001485/0.3728, allocations: 0.6381 MB / 0.5206 GB, free: 12.54 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001631/0.3744, allocations: 0.7401 MB / 0.5213 GB, free: 12.24 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003021/0.3747, allocations: 78.16 kB / 0.5214 GB, free: 12.24 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003948/0.3787, allocations: 1.523 MB / 0.5229 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001242/0.3799, allocations: 0.6011 MB / 0.5235 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00176/0.3817, allocations: 0.567 MB / 0.524 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005297/0.387, allocations: 1.882 MB / 0.5259 GB, free: 10.55 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.141e-05/0.3871, allocations: 0 / 0.5259 GB, free: 10.55 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3871, allocations: 5.188 kB / 0.5259 GB, free: 10.54 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.896e-05/0.3872, allocations: 0 / 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.004152/0.3913, allocations: 1.332 MB / 0.5272 GB, free: 9.637 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.181e-05/0.3914, allocations: 14 kB / 0.5272 GB, free: 9.633 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003364/0.3917, allocations: 161.8 kB / 0.5273 GB, free: 9.527 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004658/0.3964, allocations: 0.5394 MB / 0.5279 GB, free: 9.445 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00164/0.3981, allocations: 0.5617 MB / 0.5284 GB, free: 9.055 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.658e-05/0.3982, allocations: 69.39 kB / 0.5285 GB, free: 9.023 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000198/0.3984, allocations: 86.3 kB / 0.5286 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002633/0.401, allocations: 1.51 MB / 0.53 GB, free: 8.172 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.938e-05/0.401, allocations: 0 / 0.53 GB, free: 8.172 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001052/0.4012, allocations: 39.64 kB / 0.5301 GB, free: 8.141 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001287/0.4013, allocations: 101.4 kB / 0.5302 GB, free: 8.109 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002391/0.4037, allocations: 1.546 MB / 0.5317 GB, free: 7.379 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.008193/0.4119, allocations: 4.882 MB / 0.5364 GB, free: 3.906 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001754/0.4137, allocations: 1.186 MB / 0.5376 GB, free: 3.281 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001053/0.4147, allocations: 0.7659 MB / 0.5383 GB, free: 2.895 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.456e-05/0.4148, allocations: 24.86 kB / 0.5384 GB, free: 2.883 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.172e-05/0.4149, allocations: 44.16 kB / 0.5384 GB, free: 2.832 MB / 398.1 MB Notification: Performance of pre-optimization done (n=107): time 3.316e-06/0.4149, allocations: 0 / 0.5384 GB, free: 2.832 MB / 398.1 MB Notification: Performance of matching and sorting (n=108): time 0.007771/0.4227, allocations: 3.681 MB / 0.542 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.49e-05/0.4227, allocations: 88.89 kB / 0.5421 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006318/0.4234, allocations: 478.3 kB / 0.5426 GB, free: 344 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.992e-05/0.4235, allocations: 45.7 kB / 0.5426 GB, free: 292 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002862/0.4238, allocations: 415.7 kB / 0.543 GB, free: 15.87 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003449/0.4241, allocations: 374.5 kB / 0.5433 GB, free: 15.5 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003183/0.4244, allocations: 198.9 kB / 0.5435 GB, free: 15.3 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.4246, allocations: 382.8 kB / 0.5439 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007777/0.4254, allocations: 0.5374 MB / 0.5444 GB, free: 14.38 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009263/0.4263, allocations: 0.7539 MB / 0.5452 GB, free: 13.54 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00181/0.4281, allocations: 1.404 MB / 0.5465 GB, free: 12.06 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.4281, allocations: 4 kB / 0.5465 GB, free: 12.06 MB / 414.1 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002996/0.4312, allocations: 1.802 MB / 0.5483 GB, free: 10.24 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.4312, allocations: 8 kB / 0.5483 GB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/0.4312, allocations: 8 kB / 0.5483 GB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/0.4323, allocations: 413.7 kB / 0.5487 GB, free: 9.816 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009141/0.4332, allocations: 231.7 kB / 0.5489 GB, free: 9.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007073/0.4403, allocations: 6.069 MB / 0.5549 GB, free: 3.219 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001022/0.4414, allocations: 63.92 kB / 0.5549 GB, free: 3.156 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002324/0.4416, allocations: 44.06 kB / 0.555 GB, free: 3.113 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.0008096/0.4424, allocations: 368.4 kB / 0.5553 GB, free: 2.746 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002299/0.4427, allocations: 71.16 kB / 0.5554 GB, free: 2.676 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00321/0.4459, allocations: 1.814 MB / 0.5571 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.258e-05/0.4459, allocations: 12 kB / 0.5572 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.627e-05/0.4459, allocations: 7.938 kB / 0.5572 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/0.446, allocations: 7.969 kB / 0.5572 GB, free: 0.8203 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.006878/0.4528, allocations: 3.469 MB / 0.5606 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.488e-05/0.4529, allocations: 4 kB / 0.5606 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008187/0.4537, allocations: 187.8 kB / 0.5607 GB, free: 13.03 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001049/0.4548, allocations: 353.4 kB / 0.5611 GB, free: 12.68 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001127/0.4549, allocations: 27.94 kB / 0.5611 GB, free: 12.65 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007089/0.462, allocations: 5.786 MB / 0.5668 GB, free: 6.57 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.147e-06/0.4621, allocations: 8 kB / 0.5668 GB, free: 6.562 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003228/0.4653, allocations: 1.833 MB / 0.5686 GB, free: 4.66 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003248/0.4656, allocations: 156.2 kB / 0.5687 GB, free: 4.488 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001488/0.4658, allocations: 27.98 kB / 0.5687 GB, free: 4.461 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005828/0.4664, allocations: 51.89 kB / 0.5688 GB, free: 4.41 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001996/0.4666, allocations: 92.81 kB / 0.5689 GB, free: 4.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.619e-05/0.4667, allocations: 36 kB / 0.5689 GB, free: 4.285 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004005/0.4671, allocations: 327.1 kB / 0.5692 GB, free: 3.965 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4671, allocations: 0 / 0.5692 GB, free: 3.965 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001316/0.4684, allocations: 399.9 kB / 0.5696 GB, free: 3.574 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.003061/0.4715, allocations: 2.399 MB / 0.5719 GB, free: 1.098 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002699/0.4742, allocations: 1.76 MB / 0.5737 GB, free: 15.31 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.4742, allocations: 0 / 0.5737 GB, free: 15.31 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001508/0.4757, allocations: 1.077 MB / 0.5747 GB, free: 14.21 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008156/0.4766, allocations: 125.5 kB / 0.5748 GB, free: 14.09 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01291/0.4895, allocations: 9.106 MB / 0.5837 GB, free: 4.621 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009213/0.4904, allocations: 1.171 MB / 0.5849 GB, free: 3.422 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005985/0.4911, allocations: 249.3 kB / 0.5851 GB, free: 3.176 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004983/0.4916, allocations: 343.2 kB / 0.5854 GB, free: 2.84 MB / 446.1 MB Notification: Performance of SimCode: time 2.295e-06/0.4916, allocations: 0 / 0.5854 GB, free: 2.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05004/0.5416, allocations: 20.8 MB / 0.6057 GB, free: 14.18 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.48, allocations: 7.875 kB / 0.6057 GB, free: 14.17 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