Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLine",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.001003/0.001003, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001036/0.001036, allocations: 189.5 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.522/1.522, allocations: 205.1 MB / 222.1 MB, free: 4.707 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06156/0.06156, allocations: 14.16 MB / 283.6 MB, free: 7.25 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 63.91 kB / 344.7 MB, free: 19.64 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.126, allocations: 50.13 MB / 394.8 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine): time 0.00839/0.1345, allocations: 7.438 MB / 402.2 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005652/0.1402, allocations: 3.526 MB / 405.8 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000506/0.1407, allocations: 15.94 kB / 405.8 MB, free: 6.438 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001104/0.1419, allocations: 370.4 kB / 406.1 MB, free: 6.074 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00377/0.1457, allocations: 1.453 MB / 407.6 MB, free: 4.629 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001065/0.1467, allocations: 0.5411 MB / 408.1 MB, free: 4.086 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002466/0.1492, allocations: 1.937 MB / 410.1 MB, free: 2.145 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002907/0.1495, allocations: 118.5 kB / 410.2 MB, free: 2.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006845/0.1502, allocations: 0.5522 MB / 410.7 MB, free: 1.465 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006228/0.1508, allocations: 0.564 MB / 411.3 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.1e-05/0.1509, allocations: 48 kB / 411.4 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008559/0.1518, allocations: 415.7 kB / 411.8 MB, free: 456 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001219/0.1519, allocations: 135.2 kB / 411.9 MB, free: 320 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004886/0.1524, allocations: 0.5208 MB / 412.4 MB, free: 15.79 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001433/0.1538, allocations: 1.355 MB / 413.8 MB, free: 14.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1539, allocations: 0 / 413.8 MB, free: 14.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1539, allocations: 0 / 413.8 MB, free: 14.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.1539, allocations: 0 / 413.8 MB, free: 14.43 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.004678/0.1586, allocations: 1.68 MB / 415.5 MB, free: 12.7 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.1586, allocations: 8.031 kB / 415.5 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001489/0.1588, allocations: 126.7 kB / 415.6 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005415/0.1593, allocations: 151.7 kB / 415.7 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.1604, allocations: 0.6413 MB / 416.4 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.336e-05/0.1604, allocations: 58.12 kB / 416.4 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.173e-05/0.1605, allocations: 72 kB / 416.5 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.1617, allocations: 0.7732 MB / 417.3 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.108e-05/0.1618, allocations: 3.984 kB / 417.3 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.226e-05/0.1618, allocations: 32 kB / 417.3 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.821e-05/0.1619, allocations: 16 kB / 417.3 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/0.1629, allocations: 0.7026 MB / 418 MB, free: 10.04 MB / 318.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.004876/0.1678, allocations: 4.689 MB / 422.7 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001631/0.1695, allocations: 0.959 MB / 423.7 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00043/0.1699, allocations: 303.8 kB / 424 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.574e-05/0.17, allocations: 12.66 kB / 424 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/0.17, allocations: 39.22 kB / 424 MB, free: 3.477 MB / 318.1 MB Notification: Performance of pre-optimization done (n=78): time 2.004e-06/0.17, allocations: 0 / 424 MB, free: 3.477 MB / 318.1 MB Notification: Performance of matching and sorting (n=78): time 0.002852/0.1729, allocations: 1.24 MB / 425.3 MB, free: 2.207 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.72e-05/0.173, allocations: 68.05 kB / 425.3 MB, free: 2.129 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006176/0.1736, allocations: 0.4945 MB / 425.8 MB, free: 1.629 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.403e-05/0.1736, allocations: 37.7 kB / 425.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003241/0.174, allocations: 359.8 kB / 426.2 MB, free: 1.227 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002538/0.1742, allocations: 280 kB / 426.5 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002051/0.1744, allocations: 134.5 kB / 426.6 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001936/0.1746, allocations: 370.8 kB / 427 MB, free: 448 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003511/0.175, allocations: 225.9 kB / 427.2 MB, free: 224 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2462/0.4212, allocations: 327.4 kB / 427.5 MB, free: 37.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009847/0.4222, allocations: 0.5883 MB / 428.1 MB, free: 37.56 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.4222, allocations: 2.031 kB / 428.1 MB, free: 37.56 MB / 318.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001645/0.4239, allocations: 0.8579 MB / 429 MB, free: 37.49 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.734e-05/0.4239, allocations: 7.125 kB / 429 MB, free: 37.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.4239, allocations: 2.312 kB / 429 MB, free: 37.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006275/0.4246, allocations: 181.9 kB / 429.2 MB, free: 37.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008307/0.4254, allocations: 198.2 kB / 429.3 MB, free: 37.47 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003029/0.4284, allocations: 2.519 MB / 431.9 MB, free: 35.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006914/0.4291, allocations: 53.36 kB / 431.9 MB, free: 35.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.221e-05/0.4292, allocations: 28.16 kB / 431.9 MB, free: 35.7 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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 {(4,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003919/0.4296, allocations: 229.3 kB / 432.2 MB, free: 35.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/0.4298, allocations: 75.22 kB / 432.2 MB, free: 35.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001497/0.4313, allocations: 0.803 MB / 433 MB, free: 35.1 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.4313, allocations: 7.969 kB / 433.1 MB, free: 35.1 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.4313, allocations: 1.469 kB / 433.1 MB, free: 35.1 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/0.4313, allocations: 12.09 kB / 433.1 MB, free: 35.1 MB / 318.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.002524/0.4339, allocations: 1.733 MB / 434.8 MB, free: 34.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.4339, allocations: 2.094 kB / 434.8 MB, free: 34.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007056/0.4346, allocations: 162.9 kB / 435 MB, free: 34.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004973/0.4351, allocations: 181.5 kB / 435.1 MB, free: 34.06 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.515e-05/0.4351, allocations: 11.78 kB / 435.1 MB, free: 34.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002743/0.4379, allocations: 2.511 MB / 437.7 MB, free: 32.12 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-06/0.4379, allocations: 5.859 kB / 437.7 MB, free: 32.11 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001541/0.4395, allocations: 0.854 MB / 438.5 MB, free: 31.67 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003762/0.4398, allocations: 210.1 kB / 438.7 MB, free: 31.49 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.335e-05/0.4399, allocations: 15.16 kB / 438.7 MB, free: 31.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004197/0.4404, allocations: 32.81 kB / 438.8 MB, free: 31.46 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.4405, allocations: 43.95 kB / 438.8 MB, free: 31.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.188e-05/0.4405, allocations: 17 kB / 438.8 MB, free: 31.45 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005824/0.4411, allocations: 346.2 kB / 439.2 MB, free: 31.29 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.42e-07/0.4411, allocations: 0 / 439.2 MB, free: 31.29 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001378/0.4425, allocations: 276.8 kB / 439.4 MB, free: 31.25 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 62 * 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 {(4,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001871/0.4444, allocations: 1.48 MB / 440.9 MB, free: 30.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002034/0.4464, allocations: 0.8447 MB / 441.8 MB, free: 29.86 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.4464, allocations: 448 / 441.8 MB, free: 29.86 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008394/0.4473, allocations: 0.5315 MB / 442.3 MB, free: 29.58 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006818/0.448, allocations: 88.61 kB / 442.4 MB, free: 29.54 MB / 318.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008917/0.4569, allocations: 6.046 MB / 448.4 MB, free: 25.89 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005838/0.4575, allocations: 0.9401 MB / 449.4 MB, free: 25.17 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005294/0.4581, allocations: 93.53 kB / 449.5 MB, free: 25.14 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003211/0.4584, allocations: 267.1 kB / 449.7 MB, free: 24.94 MB / 318.1 MB Notification: Performance of SimCode: time 1.313e-06/0.4584, allocations: 0 / 449.7 MB, free: 24.94 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02903/0.4874, allocations: 15 MB / 464.7 MB, free: 13.1 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001762/0.4877, allocations: 232 kB / 464.9 MB, free: 12.85 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.018/2.506, allocations: 4 kB / 464.9 MB, free: 12.84 MB / 318.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine_res.mat --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLine.fmu > PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine_res.mat","../files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches