Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001754/0.001754, allocations: 111.6 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002218/0.002218, allocations: 212.9 kB / 23.74 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.481/1.481, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1818/0.1818, allocations: 38.53 MB / 352.5 MB, free: 12.55 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_dq,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_dq,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002067/0.002067, allocations: 67.89 kB / 492.5 MB, free: 4.883 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3413, allocations: 62.47 MB / 0.542 GB, free: 456 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq): time 0.009694/0.351, allocations: 7.614 MB / 0.5495 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007214/0.3583, allocations: 4.49 MB / 0.5538 GB, free: 6.844 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004727/0.3587, allocations: 16.59 kB / 0.5539 GB, free: 6.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00267/0.3614, allocations: 1.067 MB / 0.5549 GB, free: 6.023 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003084/0.3645, allocations: 1.214 MB / 0.5561 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000979/0.3655, allocations: 326.5 kB / 0.5564 GB, free: 4.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001879/0.3673, allocations: 1.402 MB / 0.5578 GB, free: 4.086 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008723/0.3682, allocations: 0.5144 MB / 0.5583 GB, free: 3.754 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001119/0.3693, allocations: 0.6366 MB / 0.5589 GB, free: 3.215 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001042/0.3704, allocations: 0.7399 MB / 0.5596 GB, free: 2.473 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.865e-05/0.3705, allocations: 67.94 kB / 0.5597 GB, free: 2.406 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0026/0.3731, allocations: 1.372 MB / 0.561 GB, free: 1.031 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005082/0.3736, allocations: 486.8 kB / 0.5615 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004837/0.3741, allocations: 449.9 kB / 0.5619 GB, free: 116 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002202/0.3763, allocations: 1.456 MB / 0.5633 GB, free: 14.65 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3763, allocations: 0 / 0.5633 GB, free: 14.65 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3763, allocations: 4 kB / 0.5633 GB, free: 14.65 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.3763, allocations: 0 / 0.5633 GB, free: 14.65 MB / 414.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.001717/0.378, allocations: 1.08 MB / 0.5644 GB, free: 13.54 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.378, allocations: 11.98 kB / 0.5644 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000161/0.3782, allocations: 131.2 kB / 0.5645 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00309/0.3813, allocations: 391.9 kB / 0.5649 GB, free: 13 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008775/0.3822, allocations: 437.7 kB / 0.5653 GB, free: 12.55 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.585e-05/0.3822, allocations: 50.38 kB / 0.5654 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001283/0.3824, allocations: 72.36 kB / 0.5654 GB, free: 12.43 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001857/0.3842, allocations: 1.187 MB / 0.5666 GB, free: 11.21 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.495e-05/0.3842, allocations: 0 / 0.5666 GB, free: 11.21 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.014e-05/0.3843, allocations: 31.98 kB / 0.5666 GB, free: 11.18 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001043/0.3844, allocations: 73.95 kB / 0.5667 GB, free: 11.11 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002021/0.3864, allocations: 1.241 MB / 0.5679 GB, free: 9.867 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005639/0.3921, allocations: 3.423 MB / 0.5712 GB, free: 6.359 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001643/0.3937, allocations: 0.9835 MB / 0.5722 GB, free: 5.355 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008612/0.3946, allocations: 0.5978 MB / 0.5728 GB, free: 4.754 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.117e-05/0.3947, allocations: 20.97 kB / 0.5728 GB, free: 4.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.785e-05/0.3947, allocations: 43.56 kB / 0.5728 GB, free: 4.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=91): time 2.304e-06/0.3947, allocations: 0 / 0.5728 GB, free: 4.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=92): time 0.006681/0.4014, allocations: 3.01 MB / 0.5758 GB, free: 1.664 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.992e-05/0.4015, allocations: 86.11 kB / 0.5759 GB, free: 1.562 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004188/0.4019, allocations: 365.6 kB / 0.5762 GB, free: 1.199 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.932e-05/0.4019, allocations: 45.73 kB / 0.5763 GB, free: 1.148 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002444/0.4022, allocations: 324.9 kB / 0.5766 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003042/0.4025, allocations: 329.1 kB / 0.5769 GB, free: 0.5 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002631/0.4028, allocations: 154.6 kB / 0.577 GB, free: 352 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002056/0.403, allocations: 370.7 kB / 0.5774 GB, free: 15.97 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007018/0.4037, allocations: 469.7 kB / 0.5778 GB, free: 15.51 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008215/0.4045, allocations: 0.5657 MB / 0.5784 GB, free: 14.92 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001635/0.4061, allocations: 1.117 MB / 0.5795 GB, free: 13.77 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.4061, allocations: 0 / 0.5795 GB, free: 13.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002615/0.4087, allocations: 1.466 MB / 0.5809 GB, free: 12.29 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.4088, allocations: 8.188 kB / 0.5809 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.4088, allocations: 4 kB / 0.5809 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009684/0.4097, allocations: 341.5 kB / 0.5812 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000701/0.4104, allocations: 179.7 kB / 0.5814 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005855/0.4163, allocations: 4.075 MB / 0.5854 GB, free: 7.559 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004823/0.4168, allocations: 47.95 kB / 0.5854 GB, free: 7.512 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-05/0.4169, allocations: 35.97 kB / 0.5855 GB, free: 7.477 MB / 430.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.0004373/0.4173, allocations: 293.5 kB / 0.5858 GB, free: 7.18 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.4174, allocations: 55.67 kB / 0.5858 GB, free: 7.125 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002855/0.4203, allocations: 1.559 MB / 0.5873 GB, free: 5.551 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/0.4203, allocations: 8 kB / 0.5873 GB, free: 5.543 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.106e-06/0.4203, allocations: 8 kB / 0.5873 GB, free: 5.535 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.917e-05/0.4203, allocations: 15.95 kB / 0.5874 GB, free: 5.52 MB / 430.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.005287/0.4256, allocations: 2.987 MB / 0.5903 GB, free: 2.414 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.796e-06/0.4256, allocations: 4 kB / 0.5903 GB, free: 2.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006365/0.4262, allocations: 171.7 kB / 0.5904 GB, free: 2.242 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008225/0.4271, allocations: 281 kB / 0.5907 GB, free: 1.965 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-05/0.4271, allocations: 27.98 kB / 0.5907 GB, free: 1.938 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005361/0.4325, allocations: 3.804 MB / 0.5945 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.4325, allocations: 4 kB / 0.5945 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002574/0.4351, allocations: 1.59 MB / 0.596 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/0.4352, allocations: 71.55 kB / 0.5961 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.23e-05/0.4353, allocations: 31.86 kB / 0.5961 GB, free: 12.24 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004125/0.4357, allocations: 43.97 kB / 0.5962 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.4358, allocations: 80.78 kB / 0.5962 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.215e-05/0.4359, allocations: 47.86 kB / 0.5963 GB, free: 12.07 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003062/0.4362, allocations: 251.2 kB / 0.5965 GB, free: 11.83 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4362, allocations: 0 / 0.5965 GB, free: 11.83 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009675/0.4372, allocations: 308 kB / 0.5968 GB, free: 11.53 MB / 446.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.00288/0.4401, allocations: 2.149 MB / 0.5989 GB, free: 9.305 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002233/0.4423, allocations: 1.335 MB / 0.6002 GB, free: 7.961 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.4423, allocations: 0 / 0.6002 GB, free: 7.961 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001234/0.4435, allocations: 0.7969 MB / 0.601 GB, free: 7.148 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006546/0.4442, allocations: 102.4 kB / 0.6011 GB, free: 7.047 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01147/0.4557, allocations: 7.55 MB / 0.6085 GB, free: 15.25 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008787/0.4566, allocations: 1.072 MB / 0.6095 GB, free: 14.15 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.000431/0.457, allocations: 184.6 kB / 0.6097 GB, free: 13.97 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003965/0.4574, allocations: 259.3 kB / 0.6099 GB, free: 13.72 MB / 462.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4574, allocations: 4 kB / 0.6099 GB, free: 13.72 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05703/0.5144, allocations: 17.65 MB / 0.6272 GB, free: 12.18 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.79, allocations: 19.84 kB / 0.6272 GB, free: 12.16 MB / 478.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop_dq.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.706052082125098]