Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.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.TwoBusesPowerTransferTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesPowerTransferTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesPowerTransferTransmissionLine",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.004719/0.00472, allocations: 102.3 kB / 15.73 MB, free: 6.059 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.001238/0.001238, allocations: 192 kB / 16.67 MB, free: 5.984 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.385/1.385, allocations: 205.1 MB / 222.5 MB, free: 4.281 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06109/0.06109, allocations: 14.18 MB / 284.1 MB, free: 6.828 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.001661/0.001661, allocations: 67.91 kB / 396 MB, free: 0.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.2974, allocations: 50.14 MB / 446.1 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine): time 0.007232/0.3047, allocations: 7.289 MB / 453.4 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005604/0.3103, allocations: 3.544 MB / 457 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009323/0.3113, allocations: 18.59 kB / 457 MB, free: 9.168 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0012/0.3125, allocations: 416.2 kB / 457.4 MB, free: 8.863 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004194/0.3167, allocations: 1.625 MB / 459 MB, free: 7.574 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001171/0.3179, allocations: 0.5662 MB / 459.6 MB, free: 7.152 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002622/0.3206, allocations: 1.846 MB / 461.4 MB, free: 6.016 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002707/0.3208, allocations: 135.4 kB / 461.6 MB, free: 5.938 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001155/0.322, allocations: 0.6369 MB / 462.2 MB, free: 5.551 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001117/0.3231, allocations: 0.6454 MB / 462.8 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001446/0.3233, allocations: 63.75 kB / 462.9 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001291/0.3246, allocations: 432.5 kB / 463.3 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/0.3247, allocations: 165.2 kB / 463.5 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006111/0.3254, allocations: 0.5429 MB / 464 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002243/0.3276, allocations: 1.509 MB / 465.5 MB, free: 3.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3276, allocations: 1.062 kB / 465.5 MB, free: 3.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3276, allocations: 0 / 465.5 MB, free: 3.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.3277, allocations: 4 kB / 465.5 MB, free: 3.426 MB / 334.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.005409/0.3331, allocations: 1.738 MB / 467.3 MB, free: 1.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/0.3331, allocations: 12.03 kB / 467.3 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001334/0.3333, allocations: 122.8 kB / 467.4 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006195/0.3339, allocations: 151.7 kB / 467.6 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/0.3352, allocations: 0.6765 MB / 468.2 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.955e-05/0.3352, allocations: 66.12 kB / 468.3 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.308e-05/0.3353, allocations: 68 kB / 468.4 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/0.3364, allocations: 0.7504 MB / 469.1 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.3364, allocations: 3.938 kB / 469.1 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.889e-05/0.3365, allocations: 24.08 kB / 469.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.764e-05/0.3366, allocations: 20 kB / 469.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/0.3377, allocations: 0.7339 MB / 469.9 MB, free: 15.22 MB / 350.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.006002/0.3437, allocations: 4.808 MB / 474.7 MB, free: 9.898 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001831/0.3455, allocations: 1.166 MB / 475.9 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004378/0.346, allocations: 326.7 kB / 476.2 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.893e-05/0.346, allocations: 8.656 kB / 476.2 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.3461, allocations: 39.22 kB / 476.2 MB, free: 8.266 MB / 350.1 MB Notification: Performance of pre-optimization done (n=82): time 2.895e-06/0.3461, allocations: 0 / 476.2 MB, free: 8.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=82): time 0.002818/0.3489, allocations: 1.275 MB / 477.5 MB, free: 6.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/0.349, allocations: 64.06 kB / 477.6 MB, free: 6.887 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007012/0.3497, allocations: 0.5344 MB / 478.1 MB, free: 6.344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.139e-05/0.3497, allocations: 37.7 kB / 478.2 MB, free: 6.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000237/0.35, allocations: 348.1 kB / 478.5 MB, free: 5.953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002334/0.3502, allocations: 283.8 kB / 478.8 MB, free: 5.672 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002026/0.3504, allocations: 134.5 kB / 478.9 MB, free: 5.535 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.3506, allocations: 378.8 kB / 479.3 MB, free: 5.156 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003425/0.3509, allocations: 225.9 kB / 479.5 MB, free: 4.934 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004209/0.3514, allocations: 312.9 kB / 479.8 MB, free: 4.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008096/0.3522, allocations: 0.5708 MB / 480.4 MB, free: 4.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.3522, allocations: 4 kB / 480.4 MB, free: 4.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001448/0.3536, allocations: 0.8565 MB / 481.2 MB, free: 3.148 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.3537, allocations: 8 kB / 481.2 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.3537, allocations: 3.938 kB / 481.2 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005903/0.3543, allocations: 180.9 kB / 481.4 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007485/0.355, allocations: 191.8 kB / 481.6 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003036/0.3581, allocations: 2.543 MB / 484.1 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007088/0.3588, allocations: 51.56 kB / 484.2 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.162e-05/0.3589, allocations: 24 kB / 484.2 MB, free: 12 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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.0003407/0.3592, allocations: 225.7 kB / 484.4 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001334/0.3594, allocations: 71.16 kB / 484.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00142/0.3608, allocations: 0.8338 MB / 485.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.505e-06/0.3608, allocations: 8 kB / 485.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.3608, allocations: 4 kB / 485.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.3608, allocations: 7.922 kB / 485.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00265/0.3635, allocations: 2.009 MB / 487.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.3635, allocations: 0 / 487.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000669/0.3642, allocations: 167.8 kB / 487.5 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004809/0.3647, allocations: 184 kB / 487.7 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.797e-05/0.3647, allocations: 12 kB / 487.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002822/0.3676, allocations: 2.523 MB / 490.2 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3676, allocations: 0 / 490.2 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.369, allocations: 0.8822 MB / 491.1 MB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003548/0.3693, allocations: 235.9 kB / 491.4 MB, free: 8.555 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.781e-05/0.3694, allocations: 16 kB / 491.4 MB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004979/0.3699, allocations: 20 kB / 491.4 MB, free: 8.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.616e-05/0.37, allocations: 52.58 kB / 491.4 MB, free: 8.469 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.703e-05/0.3701, allocations: 24 kB / 491.5 MB, free: 8.445 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004722/0.3705, allocations: 378.8 kB / 491.8 MB, free: 8.078 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.373e-06/0.3706, allocations: 0 / 491.8 MB, free: 8.078 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008598/0.3714, allocations: 311.6 kB / 492.1 MB, free: 7.773 MB / 366.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 (67): * Single equations (assignments): 66 * 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.001742/0.3732, allocations: 1.496 MB / 493.6 MB, free: 6.246 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001417/0.3746, allocations: 0.8303 MB / 494.5 MB, free: 5.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3746, allocations: 0 / 494.5 MB, free: 5.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007995/0.3754, allocations: 0.5527 MB / 495 MB, free: 4.844 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007671/0.3762, allocations: 114.2 kB / 495.1 MB, free: 4.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008222/0.3844, allocations: 5.795 MB / 0.4892 GB, free: 14.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005139/0.385, allocations: 0.9386 MB / 0.4901 GB, free: 13.85 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003809/0.3854, allocations: 97.3 kB / 0.4902 GB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003709/0.3858, allocations: 275.3 kB / 0.4905 GB, free: 13.48 MB / 382.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3858, allocations: 0 / 0.4905 GB, free: 13.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04331/0.4291, allocations: 17.54 MB / 0.5076 GB, free: 11.92 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.27/10.69, allocations: 0.6875 kB / 0.5076 GB, free: 11.92 MB / 398.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine_res.mat --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TwoBusesPowerTransferTransmissionLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TwoBusesPowerTransferTransmissionLine.fmu > PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches