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.005011/0.005011, allocations: 98.98 kB / 15.73 MB, free: 6.008 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.001102/0.001102, allocations: 189.9 kB / 16.67 MB, free: 5.926 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.44/1.44, allocations: 205.1 MB / 222.5 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06643/0.06643, allocations: 14.17 MB / 284.1 MB, free: 6.969 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.001802/0.001802, allocations: 67.89 kB / 396 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2707/0.2725, allocations: 50.14 MB / 446.1 MB, free: 1.918 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine): time 0.008427/0.281, allocations: 7.287 MB / 453.4 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006288/0.2873, allocations: 3.541 MB / 457 MB, free: 9.152 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006186/0.2879, allocations: 18.22 kB / 457 MB, free: 9.148 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001108/0.2891, allocations: 420.1 kB / 457.4 MB, free: 8.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003621/0.2928, allocations: 1.625 MB / 459 MB, free: 7.551 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001095/0.2939, allocations: 0.5747 MB / 459.6 MB, free: 7.121 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002144/0.296, allocations: 1.854 MB / 461.4 MB, free: 5.977 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002621/0.2963, allocations: 124.9 kB / 461.6 MB, free: 5.906 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008728/0.2972, allocations: 0.6272 MB / 462.2 MB, free: 5.527 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007362/0.2979, allocations: 0.6369 MB / 462.8 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001032/0.298, allocations: 62.62 kB / 462.9 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009938/0.299, allocations: 425.6 kB / 463.3 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001325/0.2992, allocations: 164 kB / 463.5 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005145/0.2997, allocations: 0.5436 MB / 464 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001934/0.3016, allocations: 1.514 MB / 465.5 MB, free: 3.418 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3017, allocations: 1.438 kB / 465.5 MB, free: 3.418 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3017, allocations: 0 / 465.5 MB, free: 3.418 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.097e-05/0.3017, allocations: 0 / 465.5 MB, free: 3.418 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.005623/0.3073, allocations: 1.77 MB / 467.3 MB, free: 1.855 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.3074, allocations: 8.031 kB / 467.3 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001333/0.3075, allocations: 118.8 kB / 467.4 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006984/0.3082, allocations: 160.2 kB / 467.6 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001565/0.3098, allocations: 0.6811 MB / 468.3 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.964e-05/0.3099, allocations: 62.06 kB / 468.3 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.31, allocations: 72 kB / 468.4 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001206/0.3112, allocations: 0.7655 MB / 469.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.3112, allocations: 0 / 469.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.366e-05/0.3113, allocations: 32 kB / 469.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.277e-05/0.3113, allocations: 20 kB / 469.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001037/0.3124, allocations: 0.7065 MB / 469.9 MB, free: 15.15 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.005989/0.3184, allocations: 5.085 MB / 475 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001611/0.32, allocations: 0.9512 MB / 475.9 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004146/0.3204, allocations: 302.7 kB / 476.2 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.9e-05/0.3205, allocations: 20.52 kB / 476.3 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.28e-05/0.3205, allocations: 43.22 kB / 476.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=78): time 2.344e-06/0.3205, allocations: 4 kB / 476.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=78): time 0.00278/0.3233, allocations: 1.241 MB / 477.5 MB, free: 6.906 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.578e-05/0.3234, allocations: 64 kB / 477.6 MB, free: 6.832 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006411/0.324, allocations: 0.5498 MB / 478.2 MB, free: 6.273 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.28e-05/0.3241, allocations: 41.7 kB / 478.2 MB, free: 6.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002198/0.3243, allocations: 372.6 kB / 478.6 MB, free: 5.855 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000208/0.3245, allocations: 281.5 kB / 478.8 MB, free: 5.578 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001824/0.3247, allocations: 130.6 kB / 479 MB, free: 5.445 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.3249, allocations: 374.8 kB / 479.3 MB, free: 5.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003458/0.3252, allocations: 217.9 kB / 479.5 MB, free: 4.855 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004038/0.3256, allocations: 332.3 kB / 479.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008042/0.3264, allocations: 0.5975 MB / 480.5 MB, free: 3.871 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.3264, allocations: 4 kB / 480.5 MB, free: 3.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001458/0.3279, allocations: 0.8683 MB / 481.3 MB, free: 2.988 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.3279, allocations: 8 kB / 481.4 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.328, allocations: 0 / 481.4 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005741/0.3285, allocations: 177 kB / 481.5 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007984/0.3293, allocations: 199.8 kB / 481.7 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003018/0.3324, allocations: 2.532 MB / 484.3 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007717/0.3332, allocations: 55.73 kB / 484.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.387e-05/0.3332, allocations: 28 kB / 484.3 MB, free: 15.86 MB / 366.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.0002947/0.3335, allocations: 221.6 kB / 484.5 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.3337, allocations: 79.53 kB / 484.6 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001369/0.335, allocations: 0.8024 MB / 485.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.3351, allocations: 11.94 kB / 485.4 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3351, allocations: 4 kB / 485.4 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.3351, allocations: 3.984 kB / 485.4 MB, free: 14.71 MB / 366.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.002499/0.3376, allocations: 1.862 MB / 487.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.3376, allocations: 4 kB / 487.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006883/0.3383, allocations: 155.8 kB / 487.5 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004751/0.3388, allocations: 168.7 kB / 487.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.341e-05/0.3388, allocations: 16 kB / 487.6 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002835/0.3417, allocations: 2.531 MB / 490.2 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.3417, allocations: 0 / 490.2 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001331/0.343, allocations: 0.863 MB / 491 MB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004029/0.3434, allocations: 224.5 kB / 491.3 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.772e-05/0.3435, allocations: 20 kB / 491.3 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005464/0.3441, allocations: 16 kB / 491.3 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.489e-05/0.3442, allocations: 56.52 kB / 491.4 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.19e-05/0.3442, allocations: 16 kB / 491.4 MB, free: 8.535 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005015/0.3447, allocations: 390.8 kB / 491.7 MB, free: 8.156 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3447, allocations: 3.938 kB / 491.8 MB, free: 8.152 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009528/0.3457, allocations: 307.8 kB / 492.1 MB, free: 7.852 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 (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.001708/0.3474, allocations: 1.473 MB / 493.5 MB, free: 6.348 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001367/0.3488, allocations: 0.8227 MB / 494.3 MB, free: 5.516 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3488, allocations: 4.125 kB / 494.4 MB, free: 5.512 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007854/0.3496, allocations: 0.5253 MB / 494.9 MB, free: 4.973 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007968/0.3504, allocations: 118.2 kB / 495 MB, free: 4.859 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007869/0.3583, allocations: 5.828 MB / 0.4891 GB, free: 14.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004968/0.3588, allocations: 0.9464 MB / 0.49 GB, free: 13.9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004134/0.3593, allocations: 89.3 kB / 0.4901 GB, free: 13.81 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003788/0.3597, allocations: 275.3 kB / 0.4904 GB, free: 13.55 MB / 382.1 MB Notification: Performance of SimCode: time 3.516e-06/0.3597, allocations: 0 / 0.4904 GB, free: 13.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03821/0.3979, allocations: 17.36 MB / 0.5073 GB, free: 12.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.42, allocations: 7.141 kB / 0.5073 GB, free: 12.16 MB / 398.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 & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLine.fmu > PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches